-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
executeV2: Error Code 1: Cask (Cask Pooling Runner Execute Failure) #4055
Comments
Can you export an onnx, then use trtexec to build ? |
+1 if you can share an ONNX model / reproduction steps. |
notebookbdffc79b63.zip |
pip install tensorrt #验证导出的ONNX模型格式是否正确 config=builder.create_builder_config() def save_engine(engine, path): def load_engine(path): import ctypes
import numpy as np #input_data = np.random.rand(*input_shape).astype(dtype) output_data = np.empty(output_shape, dtype=dtype) import pycuda.driver as cuda stream = cuda.Stream() d_input = cuda.mem_alloc(input_data.nbytes) if d_input is None or d_output is None: stream = cuda.Stream() if stream is None: cuda.memcpy_htod_async(d_input, input_data, stream) context.set_tensor_address('input', int(d_input)) bindings = [int(d_input), int(d_output)] context.execute_v2(bindings) cuda.memcpy_dtoh(output_data,d_output) print(output_data) |
@jiangchengchengark did you solve the issue? I'm getting a similar error... |
when I use the lateset expressing for loading the resnet-50, it can run successfully
output:
but when I got it for pretrained
it return false
The text was updated successfully, but these errors were encountered: