From 58e7b94cbea886f28ba061446b3e0d6036483e33 Mon Sep 17 00:00:00 2001 From: Philip May Date: Thu, 19 Sep 2024 09:37:47 +0200 Subject: [PATCH] Create pytorch.md --- source/machine-learning/pytorch.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 source/machine-learning/pytorch.md diff --git a/source/machine-learning/pytorch.md b/source/machine-learning/pytorch.md new file mode 100644 index 0000000..c68c127 --- /dev/null +++ b/source/machine-learning/pytorch.md @@ -0,0 +1,5 @@ +# PyTorch + +## Commands + +- [torch.Tensor.item()](https://pytorch.org/docs/stable/generated/torch.Tensor.item.html): convert tensor to standard Python number - only works for tensors with one element