kexinyu commented on issue #17164: net.Cast("float16") doesn't work: Check 
failed: (*in_type)[i] == dtype_param (2 vs. 0) : This layer requires uniform 
type. Expected 'float32' v.s. given 'float16' at 'gamma'
URL: 
https://github.com/apache/incubator-mxnet/issues/17164#issuecomment-569778847
 
 
   > This is a known issue with BatchNorm operator not supporting float16. It 
needs some work to support, not currently a bug but not-implemented feature
   > @mxnet-label-bot update [Feature ]
   
   If the inputs uses float16, shouldn't there be a dtype switch (float16 -> 
float32) before `BatchNormForward`? 
   
https://github.com/apache/incubator-mxnet/blob/b6972bb055fc44481b072db3abb90e26ee27c787/src/operator/nn/batch_norm-inl.h#L292
   Why would this type mismatch error still exist?
   `Check failed: (*in_type)[i] == dtype_param (2 vs. 0) : This layer requires 
uniform type. Expected 'float32' v.s. given 'float16' at 'gamma'`

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