zheng-da commented on a change in pull request #11325: [MXNET-703] TensorRT 
runtime integration
URL: https://github.com/apache/incubator-mxnet/pull/11325#discussion_r205210717
 
 

 ##########
 File path: python/mxnet/executor.py
 ##########
 @@ -323,6 +325,20 @@ def output_dict(self):
                 self._symbol.list_outputs(), self.outputs)
         return self._output_dict
 
+    @property
+    def optimized_symbol(self):
+        """Get optimized symbol.
+
+        Returns
+        -------
+        symbol : nnvm::Symbol
+            The nnvm symbol optimized.
+        """
+        if self._optimized_symbol is None:
+            handle = SymbolHandle()
+            check_call(_LIB.MXExecutorGetOptimizedSymbol(self.handle, 
ctypes.byref(handle)))
 
 Review comment:
   what happens if `_optimized_symbol` exist?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to