Closed adamfarquhar closed 2 years ago
Yeah, although this warning can be annoying it's not a bug.
I know where this is coming from, I'll see if I can re-arrange things to stop this warning.
Thanks. This is the sort of thing that is disconcerting to the user. So, while not necessarily a bug, it causes doubt as to whether the underlying system is doing the right thing.
Can be related to #434. Need to check this again after updating the fastai version.
Not relevant anymore
🐛 Bug
Describe the bug /opt/conda/lib/python3.7/site-packages/fastai2/callback/core.py:50: UserWarning: You are setting an attribute (loss) that also exists in the learner, so you're not setting it in the learner but in the callback. Use
self.learn.loss
otherwise. warn(f"You are setting an attribute ({name}) that also exists in the learner, so you're not setting it in the learner but in the callback. Useself.learn.{name}
otherwise.")To Reproduce Steps to reproduce the behavior: