Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Complete training loop gracefully even if no timing is reported #1128

Closed
wants to merge 1 commit into from

Conversation

jessemin
Copy link
Contributor

Summary: PyText always requires/assums that at least one "timing" exists at the end of the training and tries to print it as an ascii table. However, if one simply does not have any timing.time("foo") call during the training, the entire training loop crashes in the end, which is I don't think desirable behavior and not all people might not be that interested in timing info at the early phase iteration/research.

Differential Revision: D18461987

Summary: PyText always requires/assums that at least one "timing" exists at the end of the training and tries to print it as an ascii table. However, if one simply does not have any `timing.time("foo")` call during the training, the entire training loop crashes in the end, which is I don't think desirable behavior and not all people might not be that interested in timing info at the early phase iteration/research.

Differential Revision: D18461987

fbshipit-source-id: ed3e2918ced9f12d172c489cf9ef3b0237729aca
@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Nov 12, 2019
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0ecf863.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants