Skip to content

Commit 611b866

Browse files
Removing redudant code
1 parent acd68ad commit 611b866

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

GNNLux/docs/src_tutorials/temporal_graph_classification_lux.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -187,24 +187,6 @@ end
187187
# Train the model
188188
train_loader, test_loader = data_loader(brain_dataset)
189189

190-
for iter in 1:5
191-
for (g, y) in train_loader
192-
193-
# Use Lux training step with our custom loss
194-
_, loss, _, train_state = Lux.Training.single_train_step!(
195-
AutoZygote(),
196-
custom_loss,
197-
(g, g.ndata.x, y),
198-
train_state
199-
)
200-
end
201-
202-
report(iter)
203-
204-
# Update the global variables with latest parameters and states
205-
ps, st = train_state.parameters, train_state.states
206-
end
207-
208190
function train(model, train_loader, test_loader )
209191
train_state = Lux.Training.TrainState(model, ps, st, Adam(1e-2))
210192
function report(epoch)

0 commit comments

Comments
 (0)