Skip to content

Commit

Permalink
Fix reference to learning_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
chimezie committed Apr 18, 2024
1 parent 4af9c08 commit 6f34e1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_scheduler_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

def load_config(yaml_string, total_iterations):
config = yaml.load(yaml_string, yaml_loader)
learning_rate = config["learning_rate"]
return SCHEDULE_CONFIGURATION_TYPE_TO_CLASS[
config["learning_schedule"]["type"]].from_configuration(learning_rate, config, total_iterations)
config["learning_schedule"]["type"]].from_configuration(config.get("learning_rate"), config, total_iterations)


class TestCosineWithWarmup:
Expand Down

0 comments on commit 6f34e1d

Please sign in to comment.