使用独立的函数如int(),float()等进行转换; 使用torch.type()函数,直接显示输入需要转换的类型; 使用type_as()函数,将该tensor转换为另一个tensor的 ...
確定! 回上一頁