- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TFE_MonitoringSamplerCellValue (4.94 sec)
-
tensorflow/c/eager/c_api_experimental_test.cc
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( {reinterpret_cast<const char*>(result1->data), result1->length})); EXPECT_EQ(histogram1.sum(), 3.0);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_experimental.cc
} void TFE_MonitoringSamplerCellAdd(TFE_MonitoringSamplerCell* cell, double value) { cell->cell.Add(value); } void TFE_MonitoringSamplerCellValue(TFE_MonitoringSamplerCell* cell, TF_Buffer* buf) { string content; cell->cell.value().SerializeToString(&content); void* data = tensorflow::port::Malloc(content.length());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 11 23:52:39 GMT 2024 - 35.9K bytes - Viewed (3) -
tensorflow/c/eager/c_api_experimental.h
TFE_MonitoringSamplerCell* cell, double value); // Retrieves the current value of the cell. The return value is a HistogramProto // saved in the buffer. TF_CAPI_EXPORT extern void TFE_MonitoringSamplerCellValue( TFE_MonitoringSamplerCell* cell, TF_Buffer* buf); // APIs for sampler buckets typedef struct TFE_MonitoringBuckets TFE_MonitoringBuckets; TF_CAPI_EXPORT extern TFE_MonitoringBuckets*
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Viewed (0)