You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/03/11 23:50:48 UTC
[GitHub] [incubator-mxnet] zhreshold commented on issue #17814:
mxnet.gluon.data.vision.transforms.Normalize(mean=0.0,
std=1.0) tuple issue within hybird_forward()
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:
users@infra.apache.org
With regards,
Apache Git Services