pytorch RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long;

錯誤:將一個np.int64的數傳給embedding 報錯內容 RuntimeError: Expected tensor for argument #1 ‘indices’ to have scalar type Long; but got CPUType instead (while checking arguments for embedding)python 解決:對這個數進行數值轉換,
相關文章
相關標籤/搜索