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

GNN model #250

Open
sana-taj-79-26 opened this issue Dec 20, 2023 · 0 comments
Open

GNN model #250

sana-taj-79-26 opened this issue Dec 20, 2023 · 0 comments

Comments

@sana-taj-79-26
Copy link

Training loop

for epoch in range(epochs):
model.train()
for data in train_loader:
optimizer.zero_grad()
output = model(data)
loss = criterion(output, labels)
loss.backward()
optimizer.step()
print(f"loss: {loss}"
plz suggest some fix to it bcz it provide errors
like AttributeError: 'Tensor' object has no attribute 'edge_index'

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

1 participant