return torch.device(type) def type(self: Tensor, dtype: int, non_blocking: bool=False, copy: bool=False) -> Tensor: return self.to(dtype, non_blocking, copy)