apeforest edited a comment on issue #16735: Use single-bit for mask in dropout 
operator
URL: https://github.com/apache/incubator-mxnet/pull/16735#issuecomment-572830100
 
 
   @TaoLv Thanks for your review. I ran operator profiling using 
benchmark.opperf.utils.benchmark_utils.run_performance_test. The result shows 
speed up in forward but some degradation in backward pass.
   
   w/ this change:
   ```
   [{'Dropout': [{'avg_time_forward_Dropout': 1.3266, 
'max_storage_mem_alloc_cpu/0': 4259.8398, 'avg_time_backward_Dropout': 0.2682, 
'inputs': {'data': (1024, 1024), 'p': 0.5}}]}]
   ```
   
   w/o this change:
   ```
   [{'Dropout': [{'avg_time_forward_Dropout': 1.7864, 
'max_storage_mem_alloc_cpu/0': 6291.4561, 'avg_time_backward_Dropout': 0.1836, 
'inputs': {'data': (1024, 1024), 'p': 0.5}}]}]
   ```

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