leezu commented on a change in pull request #19523:
URL: https://github.com/apache/incubator-mxnet/pull/19523#discussion_r528913795
##########
File path: python/mxnet/symbol/symbol.py
##########
@@ -1657,6 +1657,10 @@ def optimize_for(self, backend, args=None, aux=None,
ctx=None,
new_sym = Symbol(out)
+ # convert to numpy symbol if needed
+ if is_np_array():
+ new_sym = new_sym.as_np_ndarray()
+
Review comment:
> Can you tell me if Sphinx will copy documentation from base class?
They need to be specified specifically via `inherited-members`
https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
----------------------------------------------------------------
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]