IndexError: tensors used as indices must be long, byte or bool tensors
Closed this issue · 3 comments
mrtariqkhan commented
pau1o-hs commented
wasimjj commented
I fixed that problem buy type casting to long.
" Xgnd = X[batch.long()].transpose(0, 1)
Ygnd = Ytxy[batch.long()].transpose(0, 1)
Qgnd = Qtxy[batch.long()].transpose(0, 1)
Qgnd_xfm = Qxfm[batch.long()].transpose(0, 1)"
error are gone and script are working fine now.
pau1o-hs commented
Awesome, thanks!