Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Nov 24, 2024
1 parent 5067059 commit cdc7674
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ for i := 0; i < epochs; i++ {
m.ResetState()

loss, count := variable.New(0), 0
for dataloader.Next() {
x, t := dataloader.Batch()
for x, t := dataloader.Seq2() {
y := m.Forward(x)
loss = F.Add(loss, F.MeanSquaredError(y, t))

Expand Down

0 comments on commit cdc7674

Please sign in to comment.