Closed CharlesJames13586 closed 2 years ago
Hi,
Oops, sorry, I forgot to include this function after refactoring the code. It should be like this:
from contextlib import contextmanager
@contextmanager
def nullcontext(enter_result=None):
yield enter_result
Now it's fixed in https://github.com/tml-epfl/understanding-fast-adv-training/commit/ceed49440bfc35a676375b783eaba5940e583bcc. Thanks for letting us know about the problem!
Best, Maksym
Thank you and your work so much
The
utils.nullcontext()
appears in line 257 of the scripttrain.py.
But I can't find the definition. What is this? I would appreciate it if you could get back to me!