python - 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
,是否有任何解决方法?
解决方案
推荐阅读
- php - 如何将多项选择数据作为数组发布到mysql数据库表
- javascript - 在draft-js中选择后实体内的光标
- arrays - 如何使用分治法在二维数组中查找特定列
- c++ - 使用 Cygwin 的 C++ 中未定义的引用错误,为什么我的文件没有链接?
- java - 打印结果时如何使for循环转到下一行
- r - 使用 R 软件在 shapefile 中重叠(或转换)栅格
- javascript - 如何制作将channelID存储在数据库中的命令?
- file - 我可以在 Ansible vars_files 中创建动态列表吗?
- node.js - Express:在 bcrypt.compare 之前使用 await 会出错
- spring-boot - Spring Boot Kafka 消费者滞后并读错