leezu opened a new pull request #19143:
URL: https://github.com/apache/incubator-mxnet/pull/19143


   `if self.hybrid_forward.__func__ is not HybridBlock.hybrid_forward` check 
for detecting legacy Blocks yields false positives on Gluon 2 Blocks if they 
are wrapped with a class decorator. This leads to hybridization to silently 
fail on Gluon 2 Blocks that make use of class decorator such as `@use_np`.
   
   Fix by using `inspect.unwrap`.


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