TaoLv commented on issue #17500: [OpPerf] Implement remaining nn_conv ops in opperf URL: https://github.com/apache/incubator-mxnet/pull/17500#issuecomment-581106436 @apeforest Sorry to pick a random PR to comment: How to run the benchmark test for a single operator? I tried the code snippet in https://github.com/apache/incubator-mxnet/blob/master/benchmark/opperf/README.md. ```python import mxnet as mx from mxnet import nd from benchmark.opperf.utils.benchmark_utils import run_performance_test add_res = run_performance_test(nd.add, run_backward=True, dtype='float32', ctx=mx.cpu(), inputs=[{"lhs": (1024, 1024), "rhs": (1024, 1024)}], warmup=10, runs=25) ``` And just get below printings, no performance report: ```bash $ python op_benchmark.py INFO:root:Begin Benchmark - add INFO:root:Complete Benchmark - add ``` Another question is, the script can only be executed under the root folder of MXNet, right? So users always need to clone MXNet source code to do the benchmarking?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
