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

Function BM_SelectInputRange

tensorflow/core/framework/op_kernel_test.cc:1112–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112void BM_SelectInputRange(int iters) {
1113 testing::StopTiming();
1114
1115 // Create a Select NodeDef with 3 inputs.
1116 NodeDef node_def;
1117 node_def.set_name("select-op");
1118 node_def.set_op("Select");
1119 AttrValue attr_T;
1120 attr_T.set_type(DT_FLOAT);
1121 node_def.mutable_attr()->insert({"T", attr_T});
1122 for (size_t i = 0; i < 3; ++i) {
1123 node_def.add_input(strings::StrCat("a:", i));
1124 }
1125
1126 BM_InputRangeHelper(iters, node_def, "condition", 0, 1);
1127}
1128
1129BENCHMARK(BM_ConcatInputRange);
1130BENCHMARK(BM_SelectInputRange);

Callers

nothing calls this directly

Calls 7

StopTimingFunction · 0.85
BM_InputRangeHelperFunction · 0.85
set_opMethod · 0.80
StrCatFunction · 0.50
set_nameMethod · 0.45
insertMethod · 0.45
add_inputMethod · 0.45

Tested by

no test coverage detected