Skip to content

Commit

Permalink
[MXNET-703] Use relative path for symbol import (apache#12124)
Browse files Browse the repository at this point in the history
  • Loading branch information
KellenSunderland authored and marcoabreu committed Aug 10, 2018
1 parent ed7ba8f commit 6c70ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/contrib/tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 '
Expand Down

0 comments on commit 6c70ab2

Please sign in to comment.