Skip to content

Change LinearCyclicalScheduler to triangle wave to sawtooth wave#3186

Merged
vfdev-5 merged 14 commits intopytorch:masterfrom
sihyeong671:feat/scheduler
Feb 8, 2024
Merged

Change LinearCyclicalScheduler to triangle wave to sawtooth wave#3186
vfdev-5 merged 14 commits intopytorch:masterfrom
sihyeong671:feat/scheduler

Conversation

@sihyeong671
Copy link
Copy Markdown
Contributor

@sihyeong671 sihyeong671 commented Jan 11, 2024

Fixes #3185

Description:

Add monotonic variable in LinearCyclicalScheduler
LinearCyclicalScheduler's get_param method is modified

Add Test case LinearCyclicalScheduler ValueError
Add Test case LinearCyclicalScheduler with warmup duration

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@github-actions github-actions bot added the module: handlers Core Handlers module label Jan 11, 2024
@vfdev-5
Copy link
Copy Markdown
Collaborator

vfdev-5 commented Jan 11, 2024

Thanks for the PR and opening a corresponding feature request, @sihyeong671 !
The only problem I see here is BC-breaking change, so let's implement this feature as an optional flag with default value keeping current behavior, such that ignite users won't have their code broken after this PR get landed. What do you think?

@sihyeong671
Copy link
Copy Markdown
Contributor Author

sihyeong671 commented Jan 11, 2024

Thanks for the PR and opening a corresponding feature request, @sihyeong671 ! The only problem I see here is BC-breaking change, so let's implement this feature as an optional flag with default value keeping current behavior, such that ignite users won't have their code broken after this PR get landed. What do you think?

got it! I think that is a good idea.I will try add optional flag

Copy link
Copy Markdown
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks a lot for the contribution, @sihyeong671 !

@vfdev-5 vfdev-5 merged commit 7fefe60 into pytorch:master Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: handlers Core Handlers module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing LinearCyclicalScheduler triangle wave to sawtooth wave

2 participants