- 博客(2)
- 资源 (3)
- 收藏
- 关注
原创 解决报错Input type (torch.cuda.DoubleTensor) and weight type (torch.cuda.FloatTensor) should be the same
解决RuntimeError: Input type and weight type should be the same今天用pytorch编写代码时,遇到了一个错误(如下图所示)。根据报错信息的意思可以推断,这个错误是由输入和权重的数据类型不一致引起的。 更多关于torch中张量(tensor)数据类型的介绍,可参考这个网页Link。 因此解决方法很简单,就是将输入的数据和模型参数的数据类型统一即可。在这个例子中,有以下几个解决方法。1.将输入数据(torch.tensor 形式)转换成Floa
2022-03-09 13:13:25 20653
原创 一种简洁且有效的方式解决anaconda一直卡在loading applications
高效解决anaconda一直卡在loading applications方法今天晚上打开anaconda,发现软件一直卡在loading applications。关闭重启了几次(包括重启系统)后发现依旧无法解决这个问题,于是在google中搜索解决方案,最后完美解决这个问题。具体可参考:link (用户limkin0902给出的解决方案)。这个方法就是先在anaconda3文件夹里找到conda_api.py文件,然后将conda_api.py文件中大约第1364行的data=yaml.load(f)
2021-06-08 22:18:20 8354 11
saliency optimization from robust background detection论文代码
2017-12-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人