Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_MonitoringReadCounter0 (0.23 sec)

  1. tensorflow/c/eager/c_api_experimental_reader.cc

    }
    
    TFE_MonitoringCounterReader* TFE_MonitoringNewCounterReader(const char* name) {
      auto* result = new TFE_MonitoringCounterReader(name);
    
      return result;
    }
    
    int64_t TFE_MonitoringReadCounter0(TFE_MonitoringCounterReader* cell_reader) {
      int64_t result = cell_reader->Read();
    
      return result;
    }
    
    int64_t TFE_MonitoringReadCounter1(TFE_MonitoringCounterReader* cell_reader,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental_reader.h

    TF_CAPI_EXPORT extern TFE_MonitoringCounterReader*
    TFE_MonitoringNewCounterReader(const char* name);
    
    // Reads the value of a counter that was created with 0 labels.
    TF_CAPI_EXPORT extern int64_t TFE_MonitoringReadCounter0(
        TFE_MonitoringCounterReader*);
    
    // Reads the value of specific cell of a counter that was created with 1 label.
    TF_CAPI_EXPORT extern int64_t TFE_MonitoringReadCounter1(
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental_reader_test.cc

      auto counter_name = "test/counter0";
      auto* counter = CreateCounter0(counter_name);
      auto* reader = TFE_MonitoringNewCounterReader(counter_name);
      IncrementCounter0(counter);
    
      int64_t actual = TFE_MonitoringReadCounter0(reader);
    
      CHECK_EQ(actual, 1);
    }
    
    TEST(CAPI, MonitoringCellReader1) {
      auto counter_name = "test/counter1";
      auto label_name = "test/label";
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.9K bytes
    - Viewed (0)
Back to top