torch.set_default_tensor_type — PyTorch 1.11.0 documentation
pytorch.org › torchtorch.set_default_tensor_type. Sets the default torch.Tensor type to floating point tensor type t. This type will also be used as default floating point type for type inference in torch.tensor (). The default floating point tensor type is initially torch.FloatTensor. t ( type or string) – the floating point tensor type or its name.