pytorch报错
TypeError: can’t convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, int64, int32, int16, int8, and uint8.
源码
src_seq = torch.LongTensor(src_seq) # 填充
问题
src_seq二维矩阵维度没有对齐,
pytorch报错
TypeError: can’t convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, int64, int32, int16, int8, and uint8.
源码
src_seq = torch.LongTensor(src_seq) # 填充
问题
src_seq二维矩阵维度没有对齐,