contrib.tensorrt¶
Module to enable the use of TensorRT optimized graphs.
Functions
Get an environment variable which describes if TensorRT is currently running in FP16 |
|
|
Set weights in attributes of TensorRT nodes |
|
Set an environment variable which will enable or disable the use of FP16 precision in |
-
mxnet.contrib.tensorrt.
get_use_fp16
()[source]¶ Get an environment variable which describes if TensorRT is currently running in FP16 :return: Boolean, true if TensorRT is running in FP16, False for FP32
-
mxnet.contrib.tensorrt.
init_tensorrt_params
(sym, arg_params, aux_params)[source]¶ Set weights in attributes of TensorRT nodes :param sym: Symbol, the symbol graph should contains some TensorRT nodes :param arg_params: arg_params :param aux_params: aux_params :return arg_params, aux_params: remaining params that are not in TensorRT nodes