Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Test plan: ``` % python -c "import torch;import numpy;print(numpy.__version__, torch.tensor(numpy.arange(3, 10)))" 2.1.0.dev0+git20240312.9de8a80 tensor([3, 4, 5, 6, 7, 8, 9]) % python -c "import torch;print(torch.rand(3, 3).numpy())" [[0.0931946 0.44874293 0.8480404 ] [0.93877375 0.10188377 0.67375803] [0.02520031 0.89019287 0.5691561 ]] ``` Fixes #121798 Pull Request resolved: #121880 Approved by: https://github.com/albanD (cherry picked from commit 38d9bb5) Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
- Loading branch information