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

Function BM_TensorShape_Init

tensorflow/core/framework/tensor_shape_test.cc:687–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687static void BM_TensorShape_Init(int iters, int arg) {
688 auto sizes = MakeSizes(arg);
689 while (--iters > 0) {
690 TensorShape shape(sizes);
691 tensorflow::testing::DoNotOptimize(shape.num_elements());
692 }
693}
694BENCHMARK(BM_TensorShape_Init)->Arg(0)->Arg(1)->Arg(2)->Arg(3)->Arg(4);
695
696static void BM_TensorShape_Assign(int iters, int arg) {

Callers

nothing calls this directly

Calls 3

MakeSizesFunction · 0.85
DoNotOptimizeFunction · 0.85
num_elementsMethod · 0.45

Tested by

no test coverage detected