sxjscience opened a new issue #18074: [Numpy] Unique has not registered the 
gradient
URL: https://github.com/apache/incubator-mxnet/issues/18074
 
 
   ```python
   import mxnet as mx
   from mxnet.gluon import nn, HybridBlock
   mx.npx.set_np()
   
   class Foo(HybridBlock):
       def hybrid_forward(self, F, x):
           y = F.np.unique(x)
           return y
   
   foo = Foo()
   foo.hybridize()
   out = foo(mx.np.ones((10,)))
   print(out.asnumpy())
   ```
   
   Error message:
   
   ```
   MXNetError: Traceback (most recent call last):
     File "../src/nnvm/gradient.cc", line 213
   MXNetError: Operator _npi_unique is non-differentiable because it didn't 
register FGradient attribute.
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to