Skip to content

Commit

Permalink
fix loss_scale atom typo in Axon.Loop.trainer (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtedw committed Jun 21, 2023
1 parent 42ef81a commit 6359258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/axon/loop.ex
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ defmodule Axon.Loop do

# Build loss now so we can use it as a metric
loss_fn = build_loss_fn(loss)
step_opts = Keyword.take(opts, [:gradient_accumulation_steps, :loss_cale, :seed])
step_opts = Keyword.take(opts, [:gradient_accumulation_steps, :loss_scale, :seed])
{init_fn, step_fn} = train_step(model, loss_fn, optimizer, step_opts)

log_interval = opts[:log] || 50
Expand Down

0 comments on commit 6359258

Please sign in to comment.