samskalicky commented on a change in pull request #15886: [WIP] Graph Partition 
API
URL: https://github.com/apache/incubator-mxnet/pull/15886#discussion_r315419605
 
 

 ##########
 File path: python/mxnet/symbol/symbol.py
 ##########
 @@ -1437,6 +1437,37 @@ def _gen_atomic_symbol(self):
         return Symbol(handle)
 
 
+    def optimize_for(self, backend, ctx=None, args=None, **kwargs):
+        """Partition symbol and optimize it for a given backend"""
+        out = SymbolHandle()
+        if ctx is None or args is None:
+            infer_shape_type = False
+        else:
+            infer_shape_type = True
+            if not isinstance(ctx, Context):
+                raise TypeError("Context type error")
+            listed_arguments = self.list_arguments()
+            args_handle, args = self._get_ndarray_inputs('args', args, 
listed_arguments, False)
 
 Review comment:
   are we overwriting "args" here thats the input to the optimize_for function?

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