Skip to content

Commit

Permalink
Fix train_unit_example.py (#547)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #547

This example was not updated after API changes

Reviewed By: ananthsub

Differential Revision: D49474480

fbshipit-source-id: 6c8f2165e2bfc66e0f9737e26218f17e25c40f7e
  • Loading branch information
daniellepintz authored and facebook-github-bot committed Sep 20, 2023
1 parent bf957ed commit df2768f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/train_unit_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ def main(argv: List[str]) -> None:
args.log_every_n_steps,
)

# pyre-fixme[28]: Unexpected keyword argument `dataloader`.
train(
my_unit,
dataloader=dataloader,
train_dataloader=dataloader,
max_epochs=args.max_epochs,
)

Expand Down

0 comments on commit df2768f

Please sign in to comment.