Skip to content
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

[ERROR] Unsupported numpy data type: i64. Cannot implicitly convert to tensorrt.Weights. #870

Open
zzlnys opened this issue Jun 17, 2023 · 1 comment

Comments

@zzlnys
Copy link

zzlnys commented Jun 17, 2023

[06/17/2023-20:06:23] [TRT] [I] [MemUsageChange] Init CUDA: CPU +522, GPU +0, now: CPU 10870, GPU 2466 (MiB)
[06/17/2023-20:06:23] [TRT] [I] [MemUsageSnapshot] Begin constructing builder kernel library: CPU 10923 MiB, GPU 2466 MiB
[06/17/2023-20:06:23] [TRT] [I] [MemUsageSnapshot] End constructing builder kernel library: CPU 11103 MiB, GPU 2510 MiB
Warning: Encountered known unsupported method torch.empty
Warning: Encountered known unsupported method torch.is_grad_enabled
Warning: Encountered known unsupported method torch.is_grad_enabled
Warning: Encountered known unsupported method torch.Tensor.uniform_
Warning: Encountered known unsupported method torch.is_grad_enabled
Warning: Encountered known unsupported method torch.empty
Warning: Encountered known unsupported method torch.empty
Warning: Encountered known unsupported method torch.zeros
Warning: Encountered known unsupported method torch.ones
[ERROR] Unsupported numpy data type: i64. Cannot implicitly convert to tensorrt.Weights.

How should I fix the error reported above after using TensorRT?

@itachi1232gg
Copy link

try convert you model to eval mode by model.eval(), hope it can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants