Skip to content

Conversation

@carmocca
Copy link
Contributor

@carmocca carmocca commented Apr 29, 2022

What does this PR do?

Add test to ease the review of #12821

Setting the 1.6.x milestone because #12821 will need to land there

Does your PR introduce any breaking changes? If yes, please list them.

None

cc @Borda @akihironitta @carmocca @awaelchli @ninginthecloud @daniellepintz @rohitgr7

@carmocca carmocca added tests hooks Related to the hooks API labels Apr 29, 2022
@carmocca carmocca added this to the 1.6.x milestone Apr 29, 2022
@carmocca carmocca self-assigned this Apr 29, 2022
@carmocca carmocca enabled auto-merge (squash) April 29, 2022 13:32
@mergify mergify bot added the ready PRs ready to be merged label May 2, 2022
@carmocca carmocca merged commit 26acdd6 into master May 2, 2022
@carmocca carmocca deleted the test/add-hook-test-max-epochs branch May 2, 2022 12:41

called = []
callback = HookedCallback(called)
# already performed 1 step, resume and do 2 more
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain the comment? I think it's wrong.

We first train 2 steps (1 epoch).
Then, we resume to do 2 more steps (1 additional epoch)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep... it's a small typo... must be copied from the test right below

@rohitgr7 rohitgr7 mentioned this pull request Jul 1, 2022
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hooks Related to the hooks API ready PRs ready to be merged tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants