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

 ##########
 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:
   That is a mistake indeed, _optimized_symbol is never modified it would never 
exist. Corrected

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