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

_pickle.PicklingError: Can't pickle typing.Union[torch.Tensor, NoneType] #2

Open
prey176 opened this issue Oct 8, 2020 · 2 comments

Comments

@prey176
Copy link

prey176 commented Oct 8, 2020

We are working on Google Colab and were facing this issue, we were trying to train the model as stated in the READ ME with the following command ("python3 -m subgraph_matching.train --node_anchored"). The full error is stated as "_pickle.PicklingError: Can't pickle typing.Union[torch.Tensor, NoneType]: it's not the same object as typing.Union". We have also tried on the Colab GPU, but was getting the same error.

@qema
Copy link
Collaborator

qema commented Oct 9, 2020

Thanks for bringing up the issue. This seems to be a versioning issue with python/pytorch/pytorch geometric -- pyg-team/pytorch_geometric#1541 may be related?

The code has been tested with Python 3.7.4, PyTorch 1.4.0 and Pytorch Geometric 1.4.3. If you are using the latest version of the libraries, upgrading Python may help?

@prey176
Copy link
Author

prey176 commented Oct 23, 2020

Thanks, I will look into it.

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