From d707dace4d4a0255445bcd3b2e65c50b791dde4a Mon Sep 17 00:00:00 2001 From: Philip May Date: Thu, 19 Sep 2024 14:48:56 +0200 Subject: [PATCH] Update pytorch.md --- source/machine-learning/pytorch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/machine-learning/pytorch.md b/source/machine-learning/pytorch.md index df4333a..2c65971 100644 --- a/source/machine-learning/pytorch.md +++ b/source/machine-learning/pytorch.md @@ -4,5 +4,5 @@ - [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 + - only works for tensors with one element - otherwise an exception is raised - implicitly moves the value to the CPU