Install Cuda/Cudnn/python3&Venv
install cuda
copy cudnn to cuda path
install python
python -m install env
python -m venv .trtEnv
python -m pip install tensorrt
python -m pip install cuda-python
.trtEnv\Scripts\activate
deactivate
pip freeze > requirements.txt
pip install -r requirements.txt
rd /s /q .venv
TensorRT
from cuda.bindings import runtime
runtime.cudaMalloc()
runtime.cudaMemcpy(buffer[name][1], buffer[name][0].ctypes.data, buffer[name][2], runtime.cudaMemcpyKind.cudaMemcpyHostToDevice)
runtime.cudaFree(device_buffer)