You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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'
The text was updated successfully, but these errors were encountered: