mfkasim1 / xcnn

xc deep neural network (XCNN) with a differentiable DFT
8 stars 4 forks source link

AttributeError #1

Closed arshamsam closed 2 years ago

arshamsam commented 2 years ago

The 6-311++G(3df,3pd) basis for atomz 4 does not exist, but we will download it Downloaded to /home/samazadi/dqc/dqc/api/.database/6-311ppg_3df3pd/04.gaussian94 Traceback (most recent call last): File "/home/samazadi/xcnn/xcdnn2/train.py", line 252, in bestval = run_training(hparams) File "/home/samazadi/xcnn/xcdnn2/train.py", line 155, in run_training plsystem = LitDFTXC(hparams, entries) File "/home/samazadi/.local/lib/python3.9/site-packages/xcdnn2/litmodule.py", line 51, in init self.hparams = hparams File "/home/samazadi/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1178, in setattr object.setattr(self, name, value) AttributeError: can't set attribute

mfkasim1 commented 2 years ago

What version of pytorch_lightning do you have? The library typically have not great backward compatibility

arshamsam commented 2 years ago

print(torch.version) 1.9.1+cu102

arshamsam commented 2 years ago

print(pytorch_lightning.version) 1.4.9

mfkasim1 commented 2 years ago

Can you try using pytorch_lightning version 1.3.0?

arshamsam commented 2 years ago

print(pytorch_lightning.version) 1.3.0

Traceback (most recent call last): File "/home/samazadi/xcnn/xcdnn2/train.py", line 252, in bestval = run_training(hparams) File "/home/samazadi/xcnn/xcdnn2/train.py", line 155, in run_training plsystem = LitDFTXC(hparams, entries) File "/home/samazadi/.local/lib/python3.9/site-packages/xcdnn2/litmodule.py", line 51, in init self.hparams = hparams File "/home/samazadi/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1178, in setattr object.setattr(self, name, value) AttributeError: can't set attribute

mfkasim1 commented 2 years ago

How about older version of pytorch lightning?

arshamsam commented 2 years ago

seems working with version 1.0.0

mfkasim1 commented 2 years ago

Great, I have specified the pytorch lightning version in the setup, so I can close this issue.