onnxruntime: What does "const auto elem_size = X->DataType()->Size()" mean for tensor X #11503
Unanswered
Friendly-375
asked this question in
Other Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a tensor X;
we set "const auto elem_size = X->DataType()->Size()";
if datatype of tensor X is int32, so elem_size = 4;
if datatype of tensor X is int64, so elem_size = 8;
What if the data type of tensor X is std::string, what's value of elem_size???
Please help me! Thx!!!
Beta Was this translation helpful? Give feedback.
All reactions