torch.short()将该tensor投射为short类型 newtensor = tensor.short(). 同样,和numpy中的astype函数一样,是返回值才是改变类型后的结果,调用的变量 ...
確定! 回上一頁