diff options
author | Gabriel Martín Blázquez <gmartinbdev@gmail.com> | 2023-08-09 19:24:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 18:24:28 +0100 |
commit | 5b79b38bc7c706a4e33756ac261b8b6ba656ebef (patch) | |
tree | fe82f3faf4d5cbdb339c7a83d7390e48b444ce20 | |
parent | a5c5a893aa49c466119ca6f38c60def86b2ee6dc (diff) | |
download | candle-5b79b38bc7c706a4e33756ac261b8b6ba656ebef.tar.gz candle-5b79b38bc7c706a4e33756ac261b8b6ba656ebef.tar.bz2 candle-5b79b38bc7c706a4e33756ac261b8b6ba656ebef.zip |
Remove extra square bracket (#372)
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -78,7 +78,7 @@ Cheatsheet: | | Using PyTorch | Using Candle | |------------|------------------------------------------|------------------------------------------------------------------| -| Creation | `torch.Tensor([[1, 2], [3, 4]])` | `Tensor::new(&[[1f32, 2.]], [3., 4.]], &Device::Cpu)?` | +| Creation | `torch.Tensor([[1, 2], [3, 4]])` | `Tensor::new(&[[1f32, 2.], [3., 4.]], &Device::Cpu)?` | | Creation | `torch.zeros((2, 2))` | `Tensor::zeros((2, 2), DType::F32, &Device::Cpu)?` | | Indexing | `tensor[:, :4]` | `tensor.i((.., ..4))?` | | Operations | `tensor.view((2, 2))` | `tensor.reshape((2, 2))?` | |