- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TFE_MonitoringSamplerCellValue (0.16 seconds)
-
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*Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Click Count (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());
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 35.9K bytes - Click Count (0) -
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);
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 09 05:56:18 GMT 2025 - 31.5K bytes - Click Count (0)