Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Vague error. #35

Open
Abdelrahman350 opened this issue Mar 21, 2022 · 0 comments
Open

Vague error. #35

Abdelrahman350 opened this issue Mar 21, 2022 · 0 comments

Comments

@Abdelrahman350
Copy link

Hello, I am trying to run an onnex model using tensorrt backend, but I get the following error.
KeyError: 'output1_before_shuffle'

model = onnx.load(args.files)
onnx.checker.check_model(model)
input_shapes = [[d.dim_value for d in _input.type.tensor_type.shape.dim] for _input in model.graph.input]
print(input_shapes)
shape = np.ravel(input_shapes)
engine = backend.prepare(model, device='CUDA:0')
input_data = np.random.random(size=(20, shape[1], shape[2], shape[3])).astype(np.float32)
output_data = engine.run(input_data)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant