leezu commented on issue #17800: _MinusScalar type <class 
'mxnet.ndarray.ndarray.NDArray'> not supported` ?
URL: 
https://github.com/apache/incubator-mxnet/issues/17800#issuecomment-597224296
 
 
   The parameters (constant or not), are handled special in the current 
hybrid_forward API.
   
   You can see the implementation:
   
   
https://github.com/apache/incubator-mxnet/blob/afb8742e6e1e987833b39c487dc892b5537196a1/python/mxnet/gluon/block.py#L1204-L1206
   
   So you should use `hybrid_forward(self, F, x, min_v, max_v):` and not access 
`self.min_v` inside the hybrid_forward.

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