Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goldwater668 opened this issue Apr 12, 2023 · 0 comments
Open

Comments

@goldwater668
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant