hello, i have a problem with fastai.text
while create model for LM work fine, but while create classifier get some error like this
~/.local/lib/python3.6/site-packages/fastai/torch_core.py in tensor(x, *rest)
68 # XXX: Pytorch bug in dataloader using num_workers>0; TODO: create repro and report
69 if is_listy(x) and len(x)==0: return tensor(0)
---> 70 return torch.tensor(x) if is_listy(x) else as_tensor(x)
71
72 def np_address(x:np.ndarray)->int:
RuntimeError: Could not infer dtype of NoneType
i was tried using num_workers=0 at TextClasDataBunch, but that not solve the problem and give same error
I think your data is not in the correct format. Did you put the label in the expected position?
I can’t really see, because I don’t have your dataset (and I don’t want it, please just have a look by creating a pandas df and checking df.head()).
On another note: If you want people to help you, I suggest putting more work into formatting your code. Looks like you were pretty lazy and just copy&pasted stuff in here, which makes it hard to follow what happened
Yeah I’m not sure, but it looks like x == None at some point. Just clone the repo, install from local and debug using breakpoints. Thats what I would do
while learn fitting that running on training process (first loading bar) work fine,and Interrupted on validating process (second loading bar) on same epoch.