The previous version of code shows that it takes class_labels=145 as argument for pipe(). However this throws the below error.
"RuntimeError: Expected tensor for argument # 1 'indices' to have scalar type Long; but got torch.IntTensor instead (while checking arguments for embedding)"
The previous version of code shows that it takes
class_labels=145
as argument forpipe()
. However this throws the below error."RuntimeError: Expected tensor for argument # 1 'indices' to have scalar type Long; but got torch.IntTensor instead (while checking arguments for embedding)"
We must pass a tensor with Long data type.
This resolves #44