Skip to content

Add an attach function to ParamScheduler.#3532

Merged
vfdev-5 merged 14 commits intopytorch:masterfrom
atharva7-g:master
Feb 16, 2026
Merged

Add an attach function to ParamScheduler.#3532
vfdev-5 merged 14 commits intopytorch:masterfrom
atharva7-g:master

Conversation

@atharva7-g
Copy link
Copy Markdown
Contributor

@atharva7-g atharva7-g commented Feb 12, 2026

Fixes #2291.

Description:

Added an attach function, have not edited save history within the attach function since it is lazily handled in __call__. I have also added a parametrized test to tests/ignite/handlers/test_param_scheduler.py.

I have added tests for all subclasses, have modified tests with a use_attach parameter. Please let me know if the code, the tests and the docstring look OK.

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)

@atharva7-g atharva7-g marked this pull request as ready for review February 14, 2026 09:03
@atharva7-g atharva7-g changed the title [DRAFT] Add an attach function to ParamScheduler. Add an attach function to ParamScheduler. Feb 14, 2026
@atharva7-g atharva7-g requested a review from vfdev-5 February 15, 2026 09:03
@atharva7-g atharva7-g requested a review from vfdev-5 February 16, 2026 16:51
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.

LGTM, thanks @atharva7-g !

@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 16, 2026
Merged via the queue into pytorch:master with commit bfa90be Feb 16, 2026
23 of 24 checks passed
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.

Attach method for ParamScheduler

2 participants