drivanov commented on issue #16218: Improving performance of argmax operator
URL: https://github.com/apache/incubator-mxnet/pull/16218#issuecomment-534635929
 
 
   @access2rohit: 
   - When building I do not use any special tricks. flags, etc. I just launch  
`make`.
   - For banchmark I am using 
   ```
   def test_argmax()
   ```
   from `/opt/mxnet/tests/python/unittest/test_operator.py` and I launch it by 
using following command:
   ```
   nosetests --verbose -s --logging-level=DEBUG 
/opt/mxnet/tests/python/unittest/test_operator.py:test_argmax
   ```
   (BTW, `--logging-level=DEBUG` option needed to see the seed which is used by 
the test for randomly generated tensors. Otherwise the seed will be printed 
only if test should fail, which is not a case for this benchmark)
   - To make the results 100% reproducible or/and benchmark different 
`argmax`'s with the same set of randomly tensors, you need to use the same 
seed. For instance, for the benchmark I did for your #16178, I was using 
`MXNET_TEST_SEED=1643676822`. If you want to reproduce these results, just call:
   ```
   > export MXNET_TEST_SEED=1643676822
   >  nosetests --verbose -s --logging-level=DEBUG 
/opt/mxnet/tests/python/unittest/test_operator.py:test_argmax
   ```
   BTW, 
   - if you will need to use another randomly used seed, just call 
   ```
   > unset MXNET_TEST_SEED
   ```
   before launching `nosetests --verbose -s --logging-level=DEBUG ...`. 
   
   

----------------------------------------------------------------
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

Reply via email to