Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

AttributeError: 'NoneType' object has no attribute 'mem' #38

Open
OswaldoBornemann opened this issue Oct 25, 2023 · 4 comments
Open

AttributeError: 'NoneType' object has no attribute 'mem' #38

OswaldoBornemann opened this issue Oct 25, 2023 · 4 comments

Comments

@OswaldoBornemann
Copy link

When i tried to run python main.py --cfg configs/GPS/actor-GPS.yaml wandb.use False, it came out the following error:

    register_act('swish', partial(SWISH, inplace=cfg.mem.inplace))
AttributeError: 'NoneType' object has no attribute 'mem'
@luis-mueller
Copy link
Collaborator

Sorry for getting back to you so late.

I get the same error if pytorch_lightning is not installed. This should be indicated somewhere in the stack trace of this error. Can you check your entire stack trace to see whether you get the same warning about pytorch_lightning? Installing with pip install pytorch_lightning fixed the issue on my side.

@jiaqingxie
Copy link

pip install pytorch_lightning would possibly solve the problem.

@Sniper1-love
Copy link

After I try pip install pytorch_lightning it still has this problem, can it run in the docker continer?

@hello-world-anthony
Copy link

The environment cannot detect the named yacs module, so this code pip install yacs would possibly solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants