Skip to content

Commit d3cf027

Browse files
Update PyTorch Cheat.md (#2847)
Add parentheses to method. Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent 8b8c012 commit d3cf027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/PyTorch Cheat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ See [math operations](https://pytorch.org/docs/stable/torch.html?highlight=mm#ma
102102
### GPU Usage
103103

104104
```
105-
torch.cuda.is_available # check for cuda
105+
torch.cuda.is_available() # check for cuda
106106
x.cuda() # move x's data from CPU to GPU and return new object
107107
x.cpu() # move x's data from GPU to CPU and return new object
108108

0 commit comments

Comments
 (0)