xidulu opened a new issue #18544:
URL: https://github.com/apache/incubator-mxnet/issues/18544


   ```scala
   from mxnet import np, npx
   from mxnet.gluon import HybridBlock
   
   class block1(HybridBlock):
       def hybrid_forward(self, F, x):
           return x + 1
   
   class block2(HybridBlock):
       def forward(self, x):
           return x + 1
   
   net1 = block1()
   net1.hybridize()
   net2 = block2()
   net2.hybridize()
   
   print(type(net1(np.ones((2,2)))))
   
   print(type(net2(np.ones((2,2)))))
   
   ```
   
   
   Out:
   ```python
   <class 'mxnet.numpy.ndarray'>
   <class 'mxnet.ndarray.ndarray.NDArray'>
   ```
   
   Not sure what the output type from forward() is supposed to be, but it 
should be consistent with that from hybrid_foward()


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


Reply via email to