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

Error when executing main.py #3

Open
agoodweathercc opened this issue Dec 22, 2018 · 1 comment
Open

Error when executing main.py #3

agoodweathercc opened this issue Dec 22, 2018 · 1 comment

Comments

@agoodweathercc
Copy link

Hello,

When I execute main.py. I had the following error.

Traceback (most recent call last):
File "main.py", line 1, in
from train import *
File "/home/Documents/DeepLearning/graph-generation/train.py", line 24, in
from utils import *
File "/home/Documents/DeepLearning/graph-generation/utils.py", line 17, in
import data
File "/home/Documents/DeepLearning/graph-generation/data.py", line 17, in
from model import *
File "/home/Documents/DeepLearning/graph-generation/model.py", line 989
prob = x_prev @ x_last.permute(0,2,1)
^
SyntaxError: invalid syntax

@Takonan
Copy link

Takonan commented Apr 2, 2019

Are you using Python 3? The @ operator performs matmul: https://docs.scipy.org/doc/numpy/reference/generated/numpy.matmul.html#numpy.matmul

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