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

Runnable TopK model accesses input tensor as wrong type #1280

Closed
alexander-camuto opened this issue Dec 5, 2023 · 0 comments · Fixed by #1282
Closed

Runnable TopK model accesses input tensor as wrong type #1280

alexander-camuto opened this issue Dec 5, 2023 · 0 comments · Fixed by #1282

Comments

@alexander-camuto
Copy link
Contributor

Have a simple 1l TOPK model that analyzes fine:

(base) ➜  ✗ tract network.onnx
┏ 0 Source input
┃   ━━━ batch_size,6,I64
┣┳ 1 Topk /TopK
     ━━━ batch_size,4,I64
     ━━━ batch_size,4,I64

But once it is converted into a runnable graph to run on the following data:

data: [1,6,I64 2, 1, 5, 3, 3, 7]

It fails with:

[E] failed: Evaluating #2 "/TopK" Topk
Error: Evaluating #2 "/TopK" Topk

Caused by:
    Tensor datum type error: tensor is I64, accessed as F32

network.onnx.zip

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

Successfully merging a pull request may close this issue.

1 participant