Replies: 1 comment
-
|
Hi @Valoisa, did you ever discover a solution to your issue? I'm currently encountering a similar problem where I get the same outputs, regardless of my inputs. I suspect it has something to do with how the input tensor is being loaded but wanted to ask if you had any guidance! Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys. I converted a RobertaTokenizer to an ONNX format, and now I need to use it from C++ code. This model takes a string tensor as input and is supposed to return an int64 tensor of tokens, attention mask and offset mapping (accoriding to its inputs/outputs inspection). But the model spits out [0, 2] for every input. I tried to use it from the C# code, and everything worked as expected, so it's more likely I'm doing something wrong here. I'm also not quite sure about the correctness of memory ownership. Logs from the debug mode don't look suspicious. Here's what I'm doing:
Any help is appreciated.
Just in case, here's the tokenizer.
BPEtokenizer.zip
Beta Was this translation helpful? Give feedback.
All reactions