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: 'Sequential' object has no attribute 'blocks' #9

Open
XuanxiangHuang opened this issue Jan 18, 2024 · 1 comment
Open

Comments

@XuanxiangHuang
Copy link

Hello,

Thank you for your work.

I tried to run the example but failed. Do you know how to address this issue?

python src/verify.py -c configs/baseline/cifar10_conv_small.json

Device Info:

Python Version:
3.7.16 (default, Jan 17 2023, 22:20:44) 
[GCC 11.2.0]

Torch Version:
1.13.1+cu117
CUDA Version:
11.7
CUDA PATH:
None
CUDA Home:
None

Traceback (most recent call last):
  File "src/verify.py", line 49, in <module>
    original_network = load_net(**config.network.load_params())
  File "/home/xuanxiang/mn-bab/src/utilities/loading/network.py", line 811, in load_net
    original_network = original_network.blocks
  File "/home/xuanxiang/miniconda3/envs/MNBAB/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1270, in __getattr__
    type(self).__name__, name))
AttributeError: 'Sequential' object has no attribute 'blocks'

Many thanks!

@kkaulen
Copy link

kkaulen commented Apr 22, 2024

This should be fixed in my PR #10

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

2 participants