aGiant commented on issue #17800: _MinusScalar type <class 'mxnet.ndarray.ndarray.NDArray'> not supported` ? URL: https://github.com/apache/incubator-mxnet/issues/17800#issuecomment-597227128 > 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. The by calling for prediction, our client must use net(x, min_v, max_v), right? But they do not have any access to prepare the min_v and max_v in production.
---------------------------------------------------------------- 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