Thank you. I will spend some more time digging into this but
    with torch.cuda.amp.autocast:
AttributeError: __enter__

didn’t work as well. The error is unfortunately not super descriptive or guiding me how to fix it.