首页 > 解决方案 > Torchtext 与 Pytorch v1.10?

问题描述

好像 Pytorch v1.10 已经发布了,链接在这里:https ://pytorch.org/blog/pytorch-1.10-released/

我在 Torchtext 中有一个依赖项的程序,我遇到了这个兼容性问题:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.10.0+cu111 requires torch==1.9.0, but you have torch 1.10.0 which is incompatible.
torchtext 0.10.0 requires torch==1.9.0, but you have torch 1.10.0 which is incompatible.

由于标签平滑,我想使用 Pytorch v1.10 cross_entropy_loss,是否有任何解决方法?

标签: pythonpytorchtorchtext

解决方案


推荐阅读