torch.rand()
Tensor BasicsCreate a tensor with uniform random values in [0, 1).
Python
Shift+Enter to run
1
2
3
4
5
Step 0 / 0
Speed
Write Python code and press Shift+Enter or click "Run" to visualize.
Run the operation to see step-by-step explanation.