Home
last modified time | relevance | path

Searched refs:hist1 (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/costs/
Dutils_test.cc283 TestTensorSizeHistogram hist1; in TEST() local
284 const auto& buckets = hist1.GetBuckets(); in TEST()
285 hist1.Add(1037); in TEST()
286 hist1.Add(1038); in TEST()
287 hist1.Add(1039); in TEST()
289 TestTensorSizeHistogram hist2(hist1); in TEST()
290 hist1.Merge(hist2); in TEST()
291 EXPECT_EQ(6, hist1.NumElem()); in TEST()
292 EXPECT_EQ(2 * (1037 + 1038 + 1039), hist1.SumElem()); in TEST()
293 EXPECT_DOUBLE_EQ(1038.0, hist1.Average()); in TEST()
[all …]
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DHistogramTest.cs73 var hist1 = new Histogram(0.01, 60e9); in MergeSnapshots()
74 hist1.AddObservation(-0.5); // should be in the first bucket in MergeSnapshots()
75 hist1.AddObservation(1e12); // should be in the last bucket in MergeSnapshots()
76 hist1.GetSnapshot(data, false); in MergeSnapshots()