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 19:25:25 UTC

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

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

 ##########
 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:
   the argument in_stype is a list of storage types for out_grad, in_data, out_data. 

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