-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Compiled functions can't take variable number of arguments or use keyword-only arguments with defaults #9638
Comments
The version of |
Hello, thank you for the reply. I found I copied the environment information from the wrong one. We tried two approaches:
Both methods don't work, all tell me this error. |
It works for me. Can you do me a favor and modify this line to except Exception as e:
print(e) and see what comes back? |
Hi, following the step, the exception I got when I initiated the |
Hello, a little more info: even though I changed the model's name to GCNConv_test(MessagePassing), the exception remains the same. |
🐛 Describe the bug
Bug Description
The latest release mentions fixing the issue of converting the model to TorchScript when it contains message_passing. However, we tested it and found that this bug remains.
Bug's Detail:
The error message:
The toy model taken from official tutorial:
The line of code triggered the issue:
script_test_model = torch.jit.script(test_model)
A side bug we found during this process:
If we completely follow the official tutorial's code without modifying that line with a comment, i.e.,
The error message will be:
Versions (Corrected)
I am testing it with my Mac in an environment where torch_geometric is not installed. I downloaded the latest code base and directly imported it from this local source. This issue persists when we test our model on the GPU machine with 2.5.3. version is installed.
Versions of relevant libraries:
[pip3] flake8==3.8.4
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.24.4
[pip3] numpydoc==1.1.0
[pip3] torch==2.2.1
[pip3] torchaudio==2.2.1
[pip3] torchvision==0.17.1
[conda] blas 1.0 mkl
[conda] mkl 2021.4.0 hecd8cb5_637
[conda] mkl-service 2.4.0 py38h9ed2024_0
[conda] mkl_fft 1.3.1 py38h4ab4a9b_0
[conda] mkl_random 1.2.2 py38hb2f4e1b_0
[conda] numpy 1.24.4 pypi_0 pypi
[conda] numpydoc 1.1.0 pyhd3eb1b0_1
[conda] torch 2.2.1 pypi_0 pypi
[conda] torchaudio 2.2.1 pypi_0 pypi
[conda] torchvision 0.17.1 pypi_0 pypi
The text was updated successfully, but these errors were encountered: