zhreshold commented on issue #17814: 
mxnet.gluon.data.vision.transforms.Normalize(mean=0.0, std=1.0) tuple issue 
within hybird_forward()
URL: 
https://github.com/apache/incubator-mxnet/issues/17814#issuecomment-597936127
 
 
   For the first example, I noticed that you are defining both `hybrid_forward` 
and `forward` at the same time which is not supposed to work in this way.
   
   For the second example, you can use `get_constant` instead of `get`
   ```python
   # self.scales = self.params.get('scales', shape=scales.shape, 
init=mx.init.Constant(scales.asnumpy()),  differentiable=False)
   
   self.scales = self.params.get_constant(value=scales)
   ```

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