the error trace is as follow:
RuntimeError Traceback (most recent call last)
in ()
1 m3.freeze_to(-1)
----> 2 m3.fit(lrs/2, 1, metrics=[accuracy])
3 m3.unfreeze()
4 m3.fit(lrs, 1, metrics=[accuracy], cycle_len=1)
~/fastai/courses/dl1/fastai/learner.py in fit(self, lrs, n_cycle, wds, **kwargs)
190 self.sched = None
191 layer_opt = self.get_layer_opt(lrs, wds)
β> 192 self.fit_gen(self.model, self.data, layer_opt, n_cycle, **kwargs)
193
194 def lr_find(self, start_lr=1e-5, end_lr=10, wds=None):
~/fastai/courses/dl1/fastai/learner.py in fit_gen(self, model, data, layer_opt, n_cycle, cycle_len, cycle_mult, cycle_save_name, metrics, callbacks, use_wd_sched, **kwargs)
137 n_epoch = sum_geom(cycle_len if cycle_len else 1, cycle_mult, n_cycle)
138 fit(model, data, n_epoch, layer_opt.opt, self.crit,
β> 139 metrics=metrics, callbacks=callbacks, reg_fn=self.reg_fn, clip=self.clip, **kwargs)
140
141 def get_layer_groups(self): return self.models.get_layer_groups()
~/fastai/courses/dl1/fastai/model.py in fit(model, data, epochs, opt, crit, metrics, callbacks, **kwargs)
92 if stop: return
93
β> 94 vals = validate(stepper, data.val_dl, metrics)
95 print(np.round([epoch, debias_loss] + vals, 6))
96 stop=False
~/fastai/courses/dl1/fastai/model.py in validate(stepper, dl, metrics)
104 loss,res = [],[]
105 stepper.reset(False)
β> 106 for (*x,y) in iter(dl):
107 preds,l = stepper.evaluate(VV(x), VV(y))
108 loss.append(to_np(l))
~/fastai/courses/dl1/fastai/dataset.py in next(self)
238 if self.i>=len(self.dl): raise StopIteration
239 self.i+=1
β> 240 return next(self.it)
241
242 @property
~/fastai/courses/dl1/fastai/nlp.py in iter(self)
335 it = iter(self.src)
336 for i in range(len(self)):
β> 337 b = next(it)
338 yield getattr(b, self.x_fld), getattr(b, self.y_fld)
339
~/src/anaconda3/envs/fastai/lib/python3.6/site-packages/torchtext/data/iterator.py in iter(self)
176 minibatch.sort(key=self.sort_key, reverse=True)
177 yield Batch(minibatch, self.dataset, self.device,
β> 178 self.train)
179 if not self.repeat:
180 raise StopIteration
~/src/anaconda3/envs/fastai/lib/python3.6/site-packages/torchtext/data/batch.py in init(self, data, dataset, device, train)
20 if field is not None:
21 batch = [x.dict[name] for x in data]
β> 22 setattr(self, name, field.process(batch, device=device, train=train))
23
24 @classmethod
~/src/anaconda3/envs/fastai/lib/python3.6/site-packages/torchtext/data/field.py in process(self, batch, device, train)
182 ββ"
183 padded = self.pad(batch)
β> 184 tensor = self.numericalize(padded, device=device, train=train)
185 return tensor
186
~/src/anaconda3/envs/fastai/lib/python3.6/site-packages/torchtext/data/field.py in numericalize(self, arr, device, train)
296 arr = self.postprocessing(arr, None, train)
297
β> 298 arr = self.tensor_type(arr)
299 if self.sequential and not self.batch_first:
300 arr.t_()
RuntimeError: given sequence has an invalid size of dimension 2: 0