You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use dls = TextDataLoaders.from_folder(untar_data(URLs.IMDB), valid='test'), I get a Jupyter warning that I should set num_workers to 0, because multiprocessing is not currently supported on IPython and windows installation. Set num_workers to 0.
I tried this, which I found by searching, but I get an error.
File C:\Program Files\Python311\Lib\site-packages\fastcore\basics.py:496, in GetAttr.getattr(self, k)
494 if self._component_attr_filter(k):
495 attr = getattr(self,self._default,None)
--> 496 if attr is not None: return getattr(attr,k)
497 raise AttributeError(k)
File C:\Program Files\Python311\Lib\site-packages\fastcore\basics.py:496, in GetAttr.getattr(self, k)
494 if self._component_attr_filter(k):
495 attr = getattr(self,self._default,None)
--> 496 if attr is not None: return getattr(attr,k)
497 raise AttributeError(k)
File C:\Program Files\Python311\Lib\site-packages\fastcore\transform.py:173, in gather_attrs(o, k, nm)
171 att = getattr(o,nm)
172 res = [t for t in att.attrgot(k) if t is not None]
--> 173 if not res: raise AttributeError(k)
174 return res[0] if len(res)==1 else L(res)
AttributeError: train_dl
The text was updated successfully, but these errors were encountered:
When I try to use dls = TextDataLoaders.from_folder(untar_data(URLs.IMDB), valid='test'), I get a Jupyter warning that I should set num_workers to 0, because multiprocessing is not currently supported on IPython and windows installation. Set num_workers to 0.
I tried this, which I found by searching, but I get an error.
dls.train_dl.new(num_workers=0)
dls.valid_dl.new(num_workers=0)
The log is below:
AttributeError Traceback (most recent call last)
Cell In[8], line 1
----> 1 dls.train_dl.new(num_workers=0)
2 dls.valid_dl.new(num_workers=0)
File C:\Program Files\Python311\Lib\site-packages\fastcore\basics.py:496, in GetAttr.getattr(self, k)
494 if self._component_attr_filter(k):
495 attr = getattr(self,self._default,None)
--> 496 if attr is not None: return getattr(attr,k)
497 raise AttributeError(k)
File C:\Program Files\Python311\Lib\site-packages\fastcore\basics.py:496, in GetAttr.getattr(self, k)
494 if self._component_attr_filter(k):
495 attr = getattr(self,self._default,None)
--> 496 if attr is not None: return getattr(attr,k)
497 raise AttributeError(k)
File C:\Program Files\Python311\Lib\site-packages\fastai\data\core.py:450, in Datasets.getattr(self, k)
--> 450 def getattr(self,k): return gather_attrs(self, k, 'tls')
File C:\Program Files\Python311\Lib\site-packages\fastcore\transform.py:173, in gather_attrs(o, k, nm)
171 att = getattr(o,nm)
172 res = [t for t in att.attrgot(k) if t is not None]
--> 173 if not res: raise AttributeError(k)
174 return res[0] if len(res)==1 else L(res)
AttributeError: train_dl
The text was updated successfully, but these errors were encountered: