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

Code breaks when moving from Linux to MacOS #443

Open
jstovold opened this issue Dec 10, 2023 · 2 comments
Open

Code breaks when moving from Linux to MacOS #443

jstovold opened this issue Dec 10, 2023 · 2 comments

Comments

@jstovold
Copy link

I have a piece of Spektral-based code for which I am using my university HPC cluster. Everything appears to work fine on the cluster (in terms of errors etc. anyway). I just downloaded the notebook to run on my local machine while I do not have an internet connection, and I now get the following error:

ValueError: Unsupported type <class 'scipy.sparse._coo.coo_array'> for a

I have checked that both systems are running the same version of Spektral (1.3.0), so I don't see why the code works fine on one system and not the other. The error is triggered by a simple call to the Graph constructor in the Dataset.read() method, like:

return [Graph(x=self.all_x[b,...], a = self.a) for b in self.currentbatch]

Any ideas on how I can diagnose this problem? Is there some underlying dependency that I need to check the version for?

@jstovold
Copy link
Author

I've managed to fix the problem in my code, but there might still be an underlying issue in Spektral relating to it. I fixed it by creating the adjacency matrix as a coo_matrix instead of a coo_array.

@danielegrattarola
Copy link
Owner

Yeah I haven't seen that coo_array type before and Spektral assumes a COO matrix, but I'll look into extending support.
Thanks for raising this

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