MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Get

Method Get

tensorflow/core/lib/monitoring/collection_registry.h:346–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345template <MetricKind metric_kind, typename Value, int NumLabels>
346MetricCollector<metric_kind, Value, NumLabels> MetricCollectorGetter::Get(
347 const MetricDef<metric_kind, Value, NumLabels>* const metric_def) {
348 if (allowed_metric_def_ != metric_def) {
349 LOG(FATAL) << "Expected collection for: " << allowed_metric_def_->name()
350 << " but instead got: " << metric_def->name();
351 }
352
353 return collector_->GetMetricCollector(metric_def, registration_time_millis_,
354 collector_);
355}
356
357} // namespace monitoring
358} // namespace tensorflow

Callers 4

CounterMethod · 0.45
SamplerMethod · 0.45
TESTFunction · 0.45
GaugeMethod · 0.45

Calls 1

nameMethod · 0.65

Tested by 1

TESTFunction · 0.36