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 2017/11/20 18:25:43 UTC

[GitHub] piiswrong commented on a change in pull request #8725: [WIP] Fix custom op when used with need_top_grad=False

piiswrong commented on a change in pull request #8725: [WIP] Fix custom op when used with need_top_grad=False
URL: https://github.com/apache/incubator-mxnet/pull/8725#discussion_r152071822
 
 

 ##########
 File path: python/mxnet/operator.py
 ##########
 @@ -563,7 +563,7 @@ def infer_storage_type_backward(self, in_stype):
             list of aux stypes calculated from in_stype,
             in the same order as declared in list_auxiliary_states.
         """
-        return in_stype, [in_stype[0]]*len(self.list_outputs()), \
+        return in_stype, [in_stype[0]]*len(self.list_arguments()), \
 
 Review comment:
   This looks wrong. Why is there only one argument to infer_storage_type_backward?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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