Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UserWarning: The torch.cuda.*DtypeTensor constructors are no long… (
#5018) > …er recommended. It's best to use methods such as torch.tensor(data, dtype=*, device='cuda') to create tensors. By currying the returned tensor properties in CUDA_Accelerator, the above warning in PyTorch is avoided. Co-authored-by: Olatunji Ruwase <olruwase@microsoft.com> Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
- Loading branch information