mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] anirudh2290 commented on a change in pull request #8725: [WIP] Fix custom op when used with need_top_grad=False
Date Thu, 01 Jan 1970 00:00:00 GMT
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

Mime
View raw message