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

Function EqHistograms

tensorflow/core/lib/monitoring/sampler_test.cc:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using histogram::Histogram;
25
26void EqHistograms(const Histogram& expected,
27 const HistogramProto& actual_proto) {
28 Histogram actual;
29 ASSERT_TRUE(actual.DecodeFromProto(actual_proto));
30
31 EXPECT_EQ(expected.ToString(), actual.ToString());
32}
33
34auto* sampler_with_labels =
35 Sampler<1>::New({"/tensorflow/test/sampler_with_labels",

Callers 1

TESTFunction · 0.70

Calls 2

DecodeFromProtoMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected