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

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -967,6 +968,30 @@ 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:
+            cargs = [args_without_none[i] if is_arg else i.data()
 
 Review comment:
   cargs is a local variable and is not used in this function. Does it still 
make sense to keep cargs here?

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