- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for counter (0.34 sec)
-
tensorflow/c/eager/c_api_experimental_test.cc
EXPECT_EQ( 6, metrics->point_set_map.at("test/counter")->points.at(0)->int64_value); TFE_MonitoringDeleteCounter0(counter); metrics = collection_registry->CollectMetrics(options); EXPECT_EQ(metrics->point_set_map.end(), metrics->point_set_map.find("test/counter")); } TEST(CAPI, MonitoringCounterMultiple) { TF_Status* status = TF_NewStatus(); auto* counter1 = TFE_MonitoringNewCounter1("test/counter1", status,
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/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
const int callers = 4; BlockingCounter counter(callers); auto fetcher = [&counter](const string& filename, size_t offset, size_t n, char* buffer, TF_Status* status) -> int64_t { counter.DecrementCount(); if (!counter.WaitFor(std::chrono::seconds(10))) { // This avoids having the test time out, which is harder to debug.
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:57 GMT 2021 - 23.2K bytes - Viewed (0) -
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"; auto* counter = CreateCounter1(counter_name, label_name);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 20 03:14:47 GMT 2023 - 2.9K bytes - Viewed (0) -
tensorflow/c/eager/tfe_monitoring_internal.h
TFE_MonitoringCounter(const char* name, const char* description, LabelDesc&&... label) { counter = absl::WrapUnique(tensorflow::monitoring::Counter<NumLabels>::New( name, description, label...)); } std::unique_ptr<tensorflow::monitoring::Counter<NumLabels>> counter; }; struct TFE_MonitoringCounter0 : TFE_MonitoringCounter<0> { using TFE_MonitoringCounter::TFE_MonitoringCounter; };
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 5.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_reader.h
// Test only exports of the monitoring Cell Reader API which allows tests to // read current values from streamz counters defined in other modules. // // The code under test will have created streamz counters like this: // auto* streamz = tensorflow::monitoring::Counter<1>::New("name", // "description", "label"); // and then incremented that counter for various values of label: // streamz->GetCell("label-value")->IncrementBy(1); //
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 20 03:14:47 GMT 2023 - 2.3K bytes - Viewed (0) -
tensorflow/c/eager/tfe_monitoring_reader_internal.h
struct TFE_MonitoringCounterReader { explicit TFE_MonitoringCounterReader(const char* name) { counter = std::make_unique< ::tensorflow::monitoring::testing::CellReader<int64_t>>(name); } template <typename... LabelType> int64_t Read(const LabelType&... labels); std::unique_ptr<::tensorflow::monitoring::testing::CellReader<int64_t>> counter; };
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 20 03:14:47 GMT 2023 - 1.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.h
// Deletes the Counter object. TF_CAPI_EXPORT extern void TFE_MonitoringDeleteCounter0( TFE_MonitoringCounter0* counter); // Retrieves the cell from the Counter object. The Counter object will manage // lifetime of the cell. TF_CAPI_EXPORT extern TFE_MonitoringCounterCell* TFE_MonitoringGetCellCounter0( TFE_MonitoringCounter0* counter); // APIs for Counter with 1 label.
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) -
tensorflow/c/eager/c_api_experimental.cc
if (!result->counter->GetStatus().ok()) { delete result; return nullptr; } return result; } void TFE_MonitoringDeleteCounter1(TFE_MonitoringCounter1* counter) { delete counter; } TFE_MonitoringCounterCell* TFE_MonitoringGetCellCounter1( TFE_MonitoringCounter1* counter, const char* label1) { return static_cast<TFE_MonitoringCounterCell*>(
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/c_api_test.cc
} op_name += type; return TF_NewOperation( graph_, op_name.c_str(), ::tensorflow::strings::StrCat("name", counter_++).c_str()); } TF_Status* s_; private: TF_Graph* graph_; int counter_; }; // Helper macros for the TF_OperationGetAttr* tests. // TODO(ashankar): Use gmock matchers instead?
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py
) except subprocess.CalledProcessError as e: print("No failures found to log!") exit(0) # For test cases, only show the ones that failed that have text (a log) seen = collections.Counter() runfiles_matcher = re.compile(r"(/.*\.runfiles/)") for f in files.strip().splitlines(): # Just ignore any failures, they're probably not important try: r = JUnitXml.fromfile(f)
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Sep 18 19:00:37 GMT 2023 - 4.8K bytes - Viewed (0)