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

Try to run it on google colab/ jupyter notebook, report error in "final_input = torch.cat((term_NN_out_map[self.root], drug_out), 1)" (line 177 of drugcell_NN.py)) #10

Closed
mqzhanglab opened this issue Jan 10, 2021 · 1 comment

Comments

@mqzhanglab
Copy link

For GPU based python 3.6.9. google colab

It will report error in last line(train_model) train_drugcell.py for the line 177 of drugcell_NN.py
Something about the root:

final_input = torch.cat((term_NN_out_map[self.root], drug_out), 1)


Screen Shot 2021-01-10 at 6 17 54 PM

@jisoopark
Copy link
Collaborator

Hi,

Can you try to run the script on the command line and let me whether it still fails? Did you run all the functions in the "main" function (not specifically defined but placed after the train_drugcell function)?. I am little puzzled about the error because your ontology seems loaded correctly - there might be a problem in the initialization of term_NN_out_map.

Thanks,
Jisoo

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