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

Function BM_RegisterOneByOne

tensorflow/core/util/tensor_slice_set_test.cc:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static void BM_RegisterOneByOne(int parts) {
148 TensorShape shape({parts, 41});
149 TensorSliceSet slice_set(shape, DT_INT32);
150 for (int i = 0; i < parts; ++i) {
151 TensorSlice part({{i, 1}, {0, -1}});
152 TF_CHECK_OK(slice_set.Register(part, part.DebugString()));
153 }
154}
155
156BENCHMARK(BM_RegisterOneByOne);
157

Callers

nothing calls this directly

Calls 2

RegisterMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected