您当前的位置: 首页 > 

RuntimeError: Bool type is not supported by dlpack

发布时间:2022-02-05 18:32:38 ,浏览量:0

问题背景:图学习/节点预测,使用dgl加载Reddit数据集,遇到报错RuntimeError: Bool type is not supported by dlpack 在这里插入图片描述

分析

报错的内容说是dlpack不支持Bool类型,类型不支持,可能是版本问题,但是我用的是Colab,环境不是自己搭建的,不好追溯。

检索
  1. GitHub项目Issue

相同问题:https://github.com/dmlc/dgl/issues/3591

解决方案:测试环境发生错误,具体错误未提及。

  1. Stack Overflow

相同问题:https://stackoverflow.com/questions/69937348/how-to-fix-runtimeerror-bool-type-is-not-supported-by-dlpack

解决方案:pytorch版本与dgl版本不匹配,需要对pytorch进行降级

!pip install dgl==0.6.1
!pip install torch==1.9.1
成功解决!
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    108697博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.4282s