mseth10 commented on a change in pull request #15969: Partitioning Gluon 
HybridBlocks
URL: https://github.com/apache/incubator-mxnet/pull/15969#discussion_r374941692
 
 

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -967,6 +968,27 @@ def _build_cache(self, *args):
                 self._cached_op_args.append((False, params[name]))
         flags = [('data_indices', data_indices), ('param_indices', 
param_indices)] + \
                 self._flags
+
+        args, _ = _flatten(args, "input")
+        args_without_none = [ele for ele in args if ele is not None]
+        try:
+            for is_arg, i in self._cached_op_args:
+                if not is_arg:
+                    tmp = i.data()
 
 Review comment:
   can we remove assignment and just call `i.data()`

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


With regards,
Apache Git Services

Reply via email to