提交 3ad80ca3 编写于 作者: A Anna R 提交者: TensorFlower Gardener

Fix and re-enable cwise ops benchmark.

PiperOrigin-RevId: 339956677
Change-Id: Id4cea5f63b3f257170c121d74e9cb2995a10b629
上级 0b752d92
......@@ -184,7 +184,8 @@ Graph* CubeWithMulSquare(int num) {
void BM_##DEVICE##_Cube_##Impl(::testing::benchmark::State& state) { \
const int num = state.range(0); \
\
test::Benchmark(#DEVICE, Impl(num)).Run(state.iterations()); \
test::Benchmark(#DEVICE, Impl(num), /*old_benchmark_api*/ false) \
.Run(state); \
const int64 tot = static_cast<int64>(state.iterations()) * num; \
state.SetItemsProcessed(tot); \
state.SetBytesProcessed(tot * sizeof(float)); \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册