mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
a2e455f7a24f99ce90f213031334cc8d64922671
For any a < b: torch.linspace(a, a, 1) returns a 1-dim tensor of a, instead of nan torch.linspace(a, b, 1) throws an error, instead of returning nan torch.logspace(a, a, 1) returns a 1-dim tensor of 10^a, instead of nan torch.logspace(a, b, 1) throws an error, instead of returning nan torch.test() checks the 4 asserts above
Description
Languages
Python
59.9%
C++
32.3%
Cuda
2.9%
C
1.4%
Objective-C++
1.1%
Other
2.1%