Closed Thytu closed 2 years ago
The raise Exception("can't perform inference on CPU and use Nvidia TensorRT as backend") was perform before setting the default device.
raise Exception("can't perform inference on CPU and use Nvidia TensorRT as backend")
Thus, if you had no GPU and set tensorrt in commands.backend it would not enter the raise condition.
tensorrt
commands.backend
The
raise Exception("can't perform inference on CPU and use Nvidia TensorRT as backend")
was perform before setting the default device.Thus, if you had no GPU and set
tensorrt
incommands.backend
it would not enter the raise condition.