Skip to content

Commit

Permalink
Create pytorch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay authored Sep 19, 2024
1 parent 01a4763 commit 58e7b94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/machine-learning/pytorch.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 58e7b94

Please sign in to comment.