已經有在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