You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/02 18:22:59 UTC

[GitHub] piyushghai opened a new pull request #12721: [MXNET-716] Adding Scala Inference Benchmarks

piyushghai opened a new pull request #12721: [MXNET-716] Adding Scala Inference Benchmarks
URL: https://github.com/apache/incubator-mxnet/pull/12721
 
 
   ## Description ##
   Added a base wrapper class to benchmark Scala Inference examples. The class runs single inference and batch inference calls and emits the the inference time taken in easy to consume metrics :  p50, p99 and average. 
   
   There is also an attached README indicating the usage, as well as an example ```ImageClassifierExample``` using Resnet-152 to show how the tool can be used. 
   A simple run of the benchmark class with the provided ```run_image_inference_bm.sh``` produces the following sample output when run locally on a MacBook Pro : 
   
   ```
   [main] INFO org.apache.mxnetexamples.benchmark.CLIParserBase - 
   single_inference_latency p99 1663, single_inference_p50 729, single_inference_average 755.170000
   ...        
   INFO org.apache.mxnetexamples.benchmark.CLIParserBase - 
   batch_inference_latency p99 4241, batch_inference_p50 4241, batch_inference_average 4241.000000
   ```
   
   More examples around this tool are under development and will be contributed soon by @lanking520 ( Thanks for helping out on this! ) 
   
   ## Checklist ##
   ### Essentials ###
   Please feel free to remove inapplicable items for your PR.
   - [x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant [JIRA issue](https://issues.apache.org/jira/projects/MXNET/issues) created (except PRs with tiny changes)
   - [x] Changes are complete (i.e. I finished coding on this PR)
   - [x] All changes have test coverage:
   - Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
   - Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
   - Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
   - For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
   - [x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services