Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace auto_timing arg with timer #466

Closed
wants to merge 3 commits into from

Conversation

daniellepintz
Copy link
Contributor

Summary:
Users are now expected to pass in a Timer themselves, and to time their own code using state.timer.time() or get_timing_context, which we expose as a public function in this diff.

We time the code in the AutoUnit and the built-in callbacks for the user.

Differential Revision: D47523530

daniellepintz and others added 3 commits July 20, 2023 14:05
Summary: `fit` can just call `_train_impl` and we can remove `_fit_impl`.

Differential Revision: D47621579

fbshipit-source-id: 06cc0d79fda91a5fa01a4fb7eb91ccb365d9048b
Summary: We currently call `_set_module_training_mode`/`_reset_module_training_mode` in two places in train.py. We did this to support the `train_epoch` API but this was removed in (pytorch#421)

Differential Revision: D47621624

fbshipit-source-id: 970619f3bae99960e797230866c9ac3112f3fc5f
Summary:
Users are now expected to pass in a Timer themselves, and to time their own code using `state.timer.time()` or `get_timing_context`, which we expose as a public function in this diff.

We time the code in the AutoUnit and the built-in callbacks for the user.

Differential Revision: D47523530

fbshipit-source-id: 9ac77b93cd8a0990571a4cfb3a5158dff40b54e8
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47523530

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants