chrisboo commented on issue #15176: MXNet TensorRT: Please ensure build was 
compiled with MXNET_USE_TENSORRT enabled.
URL: 
https://github.com/apache/incubator-mxnet/issues/15176#issuecomment-501993345
 
 
   I have set it. It is in the script.
   
   ```
   # Execute with TensorRT
   print('Building TensorRT engine')
   os.environ['MXNET_USE_TENSORRT'] = '1'
   arg_params.update(aux_params)
   all_params = dict([(k, v.as_in_context(mx.gpu(0))) for k, v in 
arg_params.items()])
   executor = mx.contrib.tensorrt.tensorrt_bind(sym, ctx=mx.gpu(0), 
all_params=all_params,
                                                data=batch_shape, 
grad_req='null', force_rebind=True)
   ```
   
   I think the problem is that MXNet, installed via mxnet-tensorrt-cu90, is not 
actually built with the `USE_TENSORRT` option.

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