Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_MonitoringSamplerCellAdd (0.5 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

                                                 "test", "label1");
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      auto* cell1 = TFE_MonitoringGetCellSampler1(sampler1, "foo");
      TFE_MonitoringSamplerCellAdd(cell1, 1.0);
      TFE_MonitoringSamplerCellAdd(cell1, 2.0);
      TF_Buffer* result1 = TF_NewBuffer();
      TFE_MonitoringSamplerCellValue(cell1, result1);
      tensorflow::HistogramProto histogram1;
      EXPECT_TRUE(histogram1.ParseFromString(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental.cc

        TFE_MonitoringBoolGauge2* gauge, const char* label1, const char* label2) {
      return static_cast<TFE_MonitoringBoolGaugeCell*>(
          static_cast<void*>(gauge->gauge->GetCell(label1, label2)));
    }
    
    void TFE_MonitoringSamplerCellAdd(TFE_MonitoringSamplerCell* cell,
                                      double value) {
      cell->cell.Add(value);
    }
    
    void TFE_MonitoringSamplerCellValue(TFE_MonitoringSamplerCell* cell,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.h

    // These APIs de-templated monitoring Sampler for swig.
    
    typedef struct TFE_MonitoringSamplerCell TFE_MonitoringSamplerCell;
    
    // Atomically add the value of the cell.
    TF_CAPI_EXPORT extern void TFE_MonitoringSamplerCellAdd(
        TFE_MonitoringSamplerCell* cell, double value);
    
    // Retrieves the current value of the cell. The return value is a HistogramProto
    // saved in the buffer.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top