mycpuorg commented on issue #15684: mxnet nd array shape modified with 
benchmark ??
URL: 
https://github.com/apache/incubator-mxnet/issues/15684#issuecomment-517503618
 
 
   I figured the problem out. Posting this for posterity.
   
   Do not use pytest-benchmark in cases where your training function is not 
re-entrant. The issue is that pytest-benchmark, by default, performs many 
rounds and iterations of testing to generate the benchmark results. This is 
done by spawning many concurrent threads which does not go well with typical 
training functions.
   
   So, my solution was to use benchmark.pendatic method where you can specify 
the number of iterations and rounds needed to be tested. Use this method and 
limit rounds and iterations to 1 each.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to