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

NameError: name 'knn' is not defined #9

Closed
Nigar21 opened this issue Jun 16, 2022 · 2 comments
Closed

NameError: name 'knn' is not defined #9

Nigar21 opened this issue Jun 16, 2022 · 2 comments

Comments

@Nigar21
Copy link

Nigar21 commented Jun 16, 2022

also, when I run >>bash script/gene_adj.sh I got this:
Traceback (most recent call last):
File "tool/gene_adj_adanets.py", line 3, in
from knn import fast_knns2spmat, knns2ordered_nbrs, fast_knns2spmat_adaptivek
File "/home/nigar/Ada-NETS/tool/knn.py", line 289, in
class knn_brute_force(knn):
NameError: name 'knn' is not defined

@Nigar21 Nigar21 changed the title RuntimeError: input.size(-1) must be equal to input_size. Expected 256, got 512 NameError: name 'knn' is not defined Jun 16, 2022
@Thomas-wyh
Copy link
Collaborator

Hi, thanks for your issue.
Please comment the Line289~398 in tool/knn.py. These codes are not used in this project.
Also, uncomment the Line10 in script/gene_adj.sh.

These will be fixed later.

@Nigar21
Copy link
Author

Nigar21 commented Jun 17, 2022

Thank you very much! I commented the rest of knn.py from the line 289.

@Nigar21 Nigar21 closed this as completed Jun 17, 2022
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