Skip to content

unexpected explicit tensor data for input tensor 'attention_mask' for model 'pipeline-poc-inference__isvc-211152d1e7' of type 'INT32', expected datatype 'INT64' #5407

Closed Answered by dyastremsky
MLHafizur asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to resolve this issue by changing list(map(int, b_input_mask.ravel().tolist())) to list(map(int64, b_input_mask.ravel().tolist())). In the future, if you run into an issue like this, checking the type of your input at each step via type() can be helpful. Triton is expecting an int64 due to the model config and input datatype, but the data is int32.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dyastremsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5395 on February 23, 2023 21:43.