Closed gnoparus closed 4 years ago
The logic is at least one callback return true Runner.__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" to fix the problem.
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/372
The logic is at least one callback return true Runner.__call__ will return true. But using "and" the method will always return False.
Change to "or" to fix the problem.