I've got the same error with Google Colab.
!dpkg -l | grep TensorRT
ii graphsurgeon-tf 7.0.0-1+cuda10.2 amd64 GraphSurgeon for TensorRT package
ii libnvinfer-bin 7.0.0-1+cuda10.2 amd64 TensorRT binaries
ii libnvinfer-dev 7.0.0-1+cuda10.2 amd64 TensorRT development libraries and headers
ii libnvinfer-doc 7.0.0-1+cuda10.2 all TensorRT documentation
ii libnvinfer-plugin-dev 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-plugin7 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-samples 7.0.0-1+cuda10.2 all TensorRT samples
ii libnvinfer7 7.0.0-1+cuda10.2 amd64 TensorRT runtime libraries
ii libnvonnxparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvonnxparsers7 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii libnvparsers7 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii python3-libnvinfer 7.0.0-1+cuda10.2 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 7.0.0-1+cuda10.2 amd64 Python 3 development package for TensorRT
ii tensorrt 7.0.0.11-1+cuda10.2 amd64 Meta package of TensorRT
ii uff-converter-tf 7.0.0-1+cuda10.2 amd64 UFF converter for TensorRT package
!nvidia-smi
Sun May 3 16:56:38 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64.00 Driver Version: 418.67 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla P100-PCIE... Off | 00000000:00:04.0 Off | 0 |
| N/A 37C P0 25W / 250W | 0MiB / 16280MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
When I run
with trt.Builder(TRT_LOGGER) as builder, builder.create_network(*EXPLICIT_BATCH) as network, trt.OnnxParser(network, TRT_LOGGER) as parser:
builder.max_workspace_size = 1 << 28
builder.max_batch_size = 1
builder.fp16_mode = True
I've got
TypeError Traceback (most recent call last)
<ipython-input-18-b739a5fa47f7> in <module>()
----> 1 with trt.Builder(TRT_LOGGER) as builder, builder.create_network(*EXPLICIT_BATCH) as network, trt.OnnxParser(network, TRT_LOGGER) as parser:
2 builder.max_workspace_size = 1 << 28
3 builder.max_batch_size = 1
4 builder.fp16_mode = True
TypeError: pybind11::init(): factory function returned nullptr
Originally posted by @rawar in #308 (comment)
I've got the same error with Google Colab.
When I run
I've got
Originally posted by @rawar in #308 (comment)