You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
self.device = torch.device("cuda:{}".format(option['cuda_devices'][0])
TypeError: 'NoneType' object is not subscriptable
请问您这两个问题是怎么解决的呢?
------------------ 原始邮件 ------------------
发件人: "yvquanli/BGNN" ***@***.***>;
发送时间: 2021年10月21日(星期四) 下午5:18
***@***.***>;
***@***.******@***.***>;
主题: Re: [yvquanli/BGNN] OSError: [WinError 1114] 动态链接库(DLL)初始化例程失败。 (
#1
)
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
gpu = int(sys.argv[2])
IndexError: list index out of range
解决方案:sys.argv[2],说明需要两个参数,你没有输入参数,所以它报错了,
你在python xx.py arg1 arg 2.
self.device = torch.device("cuda:{}".format(option['cuda_devices'][0])
TypeError: 'NoneType' object is not subscriptable
解决方案:option['cuda_devices'][0],说明你的option['cuda_devices'][0]为None ,你要设置一下
mazhichong ***@***.***> 于2021年10月21日周四 下午7:56写道:
我环境配置好之后,出现了新的问题,想向您请教一下
gpu = int(sys.argv[2])
IndexError: list index out of range
self.device = torch.device("cuda:{}".format(option['cuda_devices'][0])
TypeError: 'NoneType' object is not subscriptable
请问您这两个问题是怎么解决的呢?
------------------ 原始邮件 ------------------
发件人: "yvquanli/BGNN" ***@***.***>;
发送时间: 2021年10月21日(星期四) 下午5:18
***@***.***>;
***@***.******@***.***>;
主题: Re: [yvquanli/BGNN] OSError: [WinError 1114] 动态链接库(DLL)初始化例程失败。
(
#1
)
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
#1 (comment)
>, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ALFSIIHDA5NSAOMDY7UBUGLUH75YPANCNFSM5GDSMPXQ
>
你试试linux下使用如下进行配置
conda create -n GLAM python=3.8 rdkit -c conda-forge --yes
conda activate GLAM
conda install pytorch=1.9.0 cudatoolkit=11.1 -c pytorch -c conda-forge --yes
CUDA=cu111
TORCH=1.9.0
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-${TORCH}+${CUDA}.html
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-${TORCH}+${CUDA}.html
pip install torch-geometric==1.7.2
@yvquanli 你好,非常感谢,因为我是Windows系统,没办法尝试这些了。
不过,我现在已经解决了这个问题,详情看我总结的文章:https://blog.csdn.net/PSpiritV/article/details/123742575
非常感谢!!!