megengine.Tensor.astype#

Tensor.astype(dtype)#

根据给定的 dtype 进行转换,返回一个数据和元素个数相同的 Tensor