Error: RuntimeError: adaptive_max_pool2d_backward_cuda does not have a deterministic implementation..
按住ctrl+f 查找scaler.scale(loss)
在scaler.scale(loss).backward()前添加torch.use_deterministic_algorithms(False)
torch.use_deterministic_algorithms(False) # added
scaler.scale(loss).backward()