Skip to content

Commit 2c914aa

Browse files
authored
added missing "import torch" to LTB Transforms (#1584)
fixes issue #1548
1 parent f07cbc5 commit 2c914aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

beginner_source/basics/transforms_tutorial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
To make these transformations, we use ``ToTensor`` and ``Lambda``.
2727
"""
2828

29+
import torch
2930
from torchvision import datasets
3031
from torchvision.transforms import ToTensor, Lambda
3132

0 commit comments

Comments
 (0)