Error: RuntimeError: adaptive_max_pool2d_backward_cuda does not have a deterministic implementation...
查看log定位error位置:
在scaler.scale(loss).backward()前添加torch.use_deterministic_algorithms(False)
torch.use_deterministic_algorithms(False) # added
scaler.scale(loss).backward()
博客记录了PyTorch运行时出现的RuntimeError,具体为adaptive_max_pool2d_backward_cuda无确定性实现。并给出解决办法,即在scaler.scale(loss).backward()前添加torch.use_deterministic_algorithms(False)来定位错误位置。
5411

被折叠的 条评论
为什么被折叠?



