ChaiBapchya edited a comment on issue #16864: [Discussion] 1.7.0 Roadmap
   Proposal : Exposing OpPerf utility in the MXNet's Pip.
   @TaoLv As discussing in one of the OpPerf PR's 
(, let's make OpPerf 
available to users by adding it to the MXNet binary.
   This will enhance the usability of the tool.
   ### Brief Description :  OpPerf
   OpPerf is tool for benchmarking MXNet operator execution. It returns 
performance stats about operator (specifically Memory Consumption, Forward Time 
& Backward Time (if applicable)).
   Currently, OpPerf utility can be tested by cloning the mxnet repo + setting 
the PYTHONPATH to the path to cloned repo and run in 1 of the 3 ways
   #### 1. Benchmark All Ops
   python incubator-mxnet/benchmark/opperf/ --output-format json 
--output-file mxnet_operator_benchmark_results.json
   This runs OpPerf on all MXNet operators (whose inputs have been given in 
OpPerf default_params file).
   #### 2. Benchmark category-specific ops
   from benchmark.opperf.nd_operations.binary_operators import 
   # Run all Binary Broadcast operations benchmarks with default input values
   #### 3. Benchmark individual ops
   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', 
                                  inputs=[{"lhs": (1024, 1024),
                                           "rhs": (1024, 1024)}],
                                  warmup=10, runs=25)
   For more details :

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:

With regards,
Apache Git Services

Reply via email to