summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Martín Blázquez <gmartinbdev@gmail.com>2023-08-09 19:24:28 +0200
committerGitHub <noreply@github.com>2023-08-09 18:24:28 +0100
commit5b79b38bc7c706a4e33756ac261b8b6ba656ebef (patch)
treefe82f3faf4d5cbdb339c7a83d7390e48b444ce20
parenta5c5a893aa49c466119ca6f38c60def86b2ee6dc (diff)
downloadcandle-5b79b38bc7c706a4e33756ac261b8b6ba656ebef.tar.gz
candle-5b79b38bc7c706a4e33756ac261b8b6ba656ebef.tar.bz2
candle-5b79b38bc7c706a4e33756ac261b8b6ba656ebef.zip
Remove extra square bracket (#372)
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index c8622b88..270069fe 100644
--- a/README.md
+++ b/README.md
@@ -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))?` |