singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-singa] dcslin edited a comment on issue #541: added 4d test on batchnorm
Date Fri, 11 Oct 2019 01:59:04 GMT
dcslin edited a comment on issue #541: added 4d test on batchnorm
URL: https://github.com/apache/incubator-singa/pull/541#issuecomment-540867039
 
 
   HI @joddiy , could you share how did you call singa api? the test you mentioned is tested
in here https://github.com/apache/incubator-singa/pull/541/files#diff-5e6248de6199ea6f777c73d3ea2643a5R62
   
   ``` python
   def _np_bn_testing(x, scale, bias, rm, rv, momentum=0.1, e=1e-5):
       ...
       return scale * (x - rm) / np.sqrt(rv + e) + bias
   ```
   
   
   for the `test_mode`, kindly use this api `GpuBatchNormForwardInference`

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


With regards,
Apache Git Services

Mime
View raw message