今天在运行torch程序的时候出现了下面的错误:
AttributeError: module 'torch.jit' has no attribute '_script_if_tracing'
解决方法
pip install torchvision==0.5.0
参考文献
AttributeError: module ‘torch.jit’ has no attribute ‘_script_if_tracing’
今天在运行torch程序的时候出现了下面的错误:
AttributeError: module 'torch.jit' has no attribute '_script_if_tracing'
pip install torchvision==0.5.0
AttributeError: module ‘torch.jit’ has no attribute ‘_script_if_tracing’