You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/10 12:19:29 UTC

[GitHub] marcoabreu closed pull request #12124: [MXNET-703] Use relative path for symbol import

marcoabreu closed pull request #12124: [MXNET-703] Use relative path for symbol import
URL: https://github.com/apache/incubator-mxnet/pull/12124
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/python/mxnet/contrib/tensorrt.py b/python/mxnet/contrib/tensorrt.py
index bb20767b3e6..4ff39c4b482 100644
--- a/python/mxnet/contrib/tensorrt.py
+++ b/python/mxnet/contrib/tensorrt.py
@@ -21,7 +21,7 @@
 import logging
 import os
 
-from mxnet.symbol import Symbol
+from .. import symbol as sym
 
 from ..base import _LIB, SymbolHandle, MXNetError
 from ..base import check_call
@@ -65,7 +65,7 @@ def get_optimized_symbol(executor):
     handle = SymbolHandle()
     try:
         check_call(_LIB.MXExecutorGetOptimizedSymbol(executor.handle, ctypes.byref(handle)))
-        result = Symbol(handle=handle)
+        result = sym.Symbol(handle=handle)
         return result
     except MXNetError:
         logging.error('Error while trying to fetch TRT optimized symbol for graph. Please ensure '


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services