mirror of
https://github.com/wassname/pytorch-for-numpy-users.git
synced 2026-06-27 16:10:21 +08:00
Support nested section
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
[PyTorch](https://github.com/pytorch/pytorch.git) version of [_Torch for Numpy users_](https://github.com/torch/torch7/wiki/Torch-for-Numpy-users).
|
||||
|
||||
|
||||
## Types
|
||||
|
||||
| Numpy | PyTorch |
|
||||
@@ -19,6 +18,8 @@
|
||||
|
||||
## Constructors
|
||||
|
||||
### Ones and zeros
|
||||
|
||||
| Numpy | PyTorch |
|
||||
|:-------------------|:---------------------------------------|
|
||||
| `np.empty((2, 3))` | `torch.Tensor(2, 3)` |
|
||||
|
||||
Reference in New Issue
Block a user