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/10 15:04:13 UTC

[GitHub] [incubator-mxnet] aGiant commented on issue #17800: _MinusScalar type not supported` ?

aGiant commented on issue #17800: _MinusScalar type <class 'mxnet.ndarray.ndarray.NDArray'> not supported` ?
URL: https://github.com/apache/incubator-mxnet/issues/17800#issuecomment-597135956
 
 
   Maybe I was too old to count the number ;)
   ```
   model_ctx = mx.gpu()
   <ipython-input-102-09c5bc45d5b4> in hybrid_forward(self, F, x)
        35     def hybrid_forward(self, F, x):
        36         #x = self.normalizer(data)
   ---> 37         x.as_in_context(model_ctx)
        38         flat_x = self.flatten(x)
        39         above = flat_x - self.min
   
   TypeError: **as_in_context() takes 1 positional argument but 2 were given**
   ```

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