aGiant commented on issue #17800: _MinusScalar type <class 
'mxnet.ndarray.ndarray.NDArray'> not supported` ?
URL: 
https://github.com/apache/incubator-mxnet/issues/17800#issuecomment-597213200
 
 
   > `hybrid_forward(self, F, x, min_v, max_v):` still mean users call the 
`net(x)`, with `min_v, max_v` being automatically passed and taking the value 
of the constants.
   > 
   > My point is that you're not using the hybridize API correctly, thus the 
link to the documentation.
   
   Because from official link in hybird_forward: 
   ```
   return (x - nd.min(x)) / (nd.max(x) - nd.min(x))
   ```
   this works very well, but 
   ```
   return (x - self.min_v) 
   ```
   did not work.

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