已经有在tensorflow一些功能来创建可以在行动中可以看出,例如in the adjust contrast op benchmark基准。然而,如果我在我的机器上运行这个,我只是得到一个空输出:如何在tensorflow中为自定义内核创建/运行基准测试?
[email protected]:~/tensorflow$ bazel run //tensorflow/core:kernels_adjust_contrast_op_benchmark_test --test_output=all --cache_test_results=no -- --benchmarks=1000
INFO: Found 1 target...
Target //tensorflow/core:kernels_adjust_contrast_op_benchmark_test up-to-date:
bazel-bin/tensorflow/core/kernels_adjust_contrast_op_benchmark_test
INFO: Elapsed time: 10.736s, Critical Path: 8.71s.
INFO: Running command line: bazel-bin/tensorflow/core/kernels_adjust_contrast_op_benchmark_test '--benchmarks=1000'.
Running main() from test_main.cc
Benchmark Time(ns) Iterations
--------------------------------
我的调用是否错误?
你能尝试传递命令行标志'--benchmarks = all'而不是'--benchmarks = 1000'吗? – mrry
@ mrry工作,谢谢! – panmari