Closed gnoparus closed 5 years ago
The logic is at least one callback return true __call__ will return true. But using "and" the method will always return False.
for cb in sorted(self.cbs, key=lambda x: x._order): res = cb(cb_name) and res
change to "or"
for cb in sorted(self.cbs, key=lambda x: x._order): res = cb(cb_name) or res
Check out this pull request on
You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.
Duplicated with https://github.com/fastai/course-v3/pull/418
The logic is at least one callback return true __call__ will return true. But using "and" the method will always return False.
change to "or"