Re: "Creating Tensors" - Tensors and Strings/Characters? #218
Unanswered
Shiva-Menon-97
asked this question in
Q&A
Replies: 1 comment
-
|
https://stackoverflow.com/questions/65804689/with-bert-text-classification-valueerror-too-many-dimensions-str-error-occur |
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.
-
Hey everyone,
Can a Tensor (be it a Scalar/Vector/Tensor) contain a character, or strings? Because when I tried them as shown below:
I get this error : " ValueError: too many dimensions 'str' "
Is it that Pytorch Tensors can't hold characters or strings?
If this is already explained in later sections of the tutorial, please do forgive me!
Beta Was this translation helpful? Give feedback.
All reactions