megengine.core.tensor.array_method.ArrayMethodMixin.astype

ArrayMethodMixin.astype(dtype)[源代码]

Returns a Tensor with the same data and number of elements with the specified dtype.