We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa2e90 commit 7f7cbacCopy full SHA for 7f7cbac
beginner_source/basics/data_tutorial.py
@@ -44,6 +44,14 @@
44
# - ``download=True`` downloads the data from the internet if it's not available at ``root``.
45
# - ``transform`` and ``target_transform`` specify the feature and label transformations
46
47
+############################################################
48
+# Loading a Dataset
49
+# -------------------
50
+# Add these 2 lines of code to control the environment, in case Conda is used.
51
+#
52
+
53
+import os
54
+os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'
55
56
import torch
57
from torch.utils.data import Dataset
0 commit comments