You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Baremetal or Container (if so, version): nvcr.io/nvidia/tensorrt 24.02-py3
Commands or scripts:
python test command:
def _do_inference_base(inputs, outputs, stream, execute_async):
# Transfer input data to the GPU.
cpu2gpu_time_start = time.time()
kind = cudart.cudaMemcpyKind.cudaMemcpyHostToDevice
[cuda_call(cudart.cudaMemcpyAsync(inp.device, inp.host, inp.nbytes, kind, stream)) for inp in inputs]
cpu2gpu_time_end = time.time()
print('cpu2gpu: ', cpu2gpu_time_end - cpu2gpu_time_start)
# Run inference.
ai_time_start = time.time()
execute_async()
ai_time_end = time.time()
print('ai_time: ', ai_time_end - ai_time_start)
# Transfer predictions back from the GPU.
gpu2cpu_time_start = time.time()
kind = cudart.cudaMemcpyKind.cudaMemcpyDeviceToHost
[cuda_call(cudart.cudaMemcpyAsync(out.host, out.device, out.nbytes, kind, stream)) for out in outputs]
# Synchronize the stream
cuda_call(cudart.cudaStreamSynchronize(stream))
gpu2cpu_time_end = time.time()
print('gpu2cpu: ', gpu2cpu_time_end - gpu2cpu_time_start)
# Return only the host outputs.
return [out.host for out in outputs]
Can this model run on other frameworks? For example run ONNX model with ONNXRuntime (polygraphy run <model.onnx> --onnxrt):No
polygraphy run Demoire_1536.onnx --onnxrt
[W] 'colored' module is not installed, will not use colors when logging. To enable colors, please install the 'colored' module: python3 -m pip install colored
[I] RUNNING | Command: /usr/local/bin/polygraphy run Demoire_1536.onnx --onnxrt
[I] onnxrt-runner-N0-03/28/24-07:34:06 | Activating and starting inference
[!] Module: 'onnxruntime' is required but could not be imported.
Note: Error was: No module named 'onnxruntime'
You can set POLYGRAPHY_AUTOINSTALL_DEPS=1 in your environment variables to allow Polygraphy to automatically install missing modules.
[E] FAILED | Runtime: 0.024s | Command: /usr/local/bin/polygraphy run Demoire_1536.onnx --onnxrt
The text was updated successfully, but these errors were encountered:
Description
trtexec GPU Compute Time: 197ms
python context.execute_async_v2 GPU Compute Time: 1ms
pytorch python GPU Compute Time: 11ms
Environment
Container: nvcr.io/nvidia/tensorrt 24.02-py3
TensorRT Version:
NVIDIA GPU: NVIDIA GeForce RTX 2080
NVIDIA Driver Version: 535.129.03
CUDA Version:
CUDNN Version:
Operating System:
Python Version (if applicable):
Tensorflow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if so, version): nvcr.io/nvidia/tensorrt 24.02-py3
Commands or scripts:
python test command:
output:
trtexec:
output:
pytorch test code:
output:
Have you tried the latest release?:Yes
Can this model run on other frameworks? For example run ONNX model with ONNXRuntime (
polygraphy run <model.onnx> --onnxrt
):Nopolygraphy run Demoire_1536.onnx --onnxrt
[W] 'colored' module is not installed, will not use colors when logging. To enable colors, please install the 'colored' module: python3 -m pip install colored
[I] RUNNING | Command: /usr/local/bin/polygraphy run Demoire_1536.onnx --onnxrt
[I] onnxrt-runner-N0-03/28/24-07:34:06 | Activating and starting inference
[!] Module: 'onnxruntime' is required but could not be imported.
Note: Error was: No module named 'onnxruntime'
You can set POLYGRAPHY_AUTOINSTALL_DEPS=1 in your environment variables to allow Polygraphy to automatically install missing modules.
[E] FAILED | Runtime: 0.024s | Command: /usr/local/bin/polygraphy run Demoire_1536.onnx --onnxrt
The text was updated successfully, but these errors were encountered: