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

The program is stuck in an endless loop, when run awnas search examples/nasbench/nasbench-101_gates_sa.yaml #53

Open
czyczyyzc opened this issue Apr 26, 2021 · 1 comment

Comments

@czyczyyzc
Copy link

When I run "awnas search examples/nasbench/nasbench-101_gates_sa.yaml --gpu 0 --save-every 10 --train-dir /public/data1/users/ziyechen/awnas/logs/nasbench-101_gates_sa", the program is stuck in an endless loop.

I find the program is stuck in the 633 line of https://github.com/walkerning/aw_nas/blob/master/aw_nas/btcs/nasbench_101.py
try:
ss.nasbench._check_spec(new_rollout.genotype)
except api.OutOfDomainError:
continue
I print the mutated genotype, and find many 'none' operations.

I guess the mutation of operation in the 'else' clause may be wrong, since it may change the old operation with the 'none' opearion. And I think we should change 'new_ops = np.random.randint(0, ss.num_op_choices, size=1)[0]' to 'new_ops = np.random.randint(0, ss.num_op_choices-1, size=1)[0]', since the last operation is the 'none' operation.

image

@TangChangcheng
Copy link
Collaborator

Hello, thanks for your contribution. I did not reproduce this bug, perhaps due to random. May I know that if you solve this problem after changing ss.num_op_choices to ss.num_op_choices - 1 and no other problems occur? Thank you.

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