fastai / course-v3

The 3rd edition of course.fast.ai
https://course.fast.ai/
Apache License 2.0
4.91k stars 3.57k forks source link

AttributeError: 'RecordOnCPU' object has no attribute 'input'? #597

Open goldwater668 opened 1 year ago

goldwater668 commented 1 year ago

AttributeError Traceback (most recent call last) Cell In[53], line 1 ----> 1 do_fit('v1.1', slice(lr*10))

Cell In[52], line 4, in do_fit(save_name, lrs, pct_start) 2 learn.fit_one_cycle(1, lrs, pct_start=pct_start) 3 learn.save(save_name) ----> 4 learn.show_results()

File /fastai/basic_train.py:407, in Learner.show_results(self, ds_type, rows, *kwargs) 405 preds = self.pred_batch(ds_type) 406 self.callbacks,rec_cpu = self.callbacks --> 407 x,y = rec_cpu.input,rec_cpu.target 408 norm = getattr(self.data,'norm',False) 409 if norm:

AttributeError: 'RecordOnCPU' object has no attribute 'input'