这个错误是由于PyTorch版本过低导致的。你需要升级PyTorch到一个更高的版本。请尝试运行以下命令来安装最新版本的PyTorch:
!pip install torch -U
然后重新运行你的代码。
yqhsw0fo1#
@lindeberg25,你可以参考Kaggle的一个入门页面(https://www.kaggle.com/jpmiller/layoutlm)
qvk1mo1f2#
@wolfshow@ranpox the kaggle starter notebook is not working please make a colab notebook it would be very appreciable.
5m1hhzi43#
感谢回复,伙计们!我已经解决了这个问题,使用torch==1.5.0+cu101(!pip install torch==1.5.0+cu101)代替pytorch==1.4.0。
3条答案
按热度按时间yqhsw0fo1#
@lindeberg25,你可以参考Kaggle的一个入门页面(https://www.kaggle.com/jpmiller/layoutlm)
qvk1mo1f2#
@wolfshow@ranpox the kaggle starter notebook is not working please make a colab notebook it would be very appreciable.
5m1hhzi43#
感谢回复,伙计们!
我已经解决了这个问题,使用torch==1.5.0+cu101(!pip install torch==1.5.0+cu101)代替pytorch==1.4.0。