Skip to content

Feat (loss/bit_width): removable hooks#1407

Merged
Giuseppe5 merged 2 commits intoXilinx:devfrom
Giuseppe5:bit_fix
Nov 5, 2025
Merged

Feat (loss/bit_width): removable hooks#1407
Giuseppe5 merged 2 commits intoXilinx:devfrom
Giuseppe5:bit_fix

Conversation

@Giuseppe5
Copy link
Collaborator

Reason for this PR

When using any derivative of BitWidthWeighted, hooks are attached to the model but there is no way of removing them.

Changes Made in this PR

Keep track of the hooks and expose a new method remove_hooks that iterate and removes all of them once the training is complete.

@Giuseppe5 Giuseppe5 requested a review from nickfraser November 3, 2025 15:57
@Giuseppe5 Giuseppe5 added the next release PRs which should be merged for the next release label Nov 3, 2025
Copy link
Collaborator

@nickfraser nickfraser left a comment

Choose a reason for hiding this comment

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

Two small comments, then this is ready to go.

@Giuseppe5 Giuseppe5 merged commit a2fb328 into Xilinx:dev Nov 5, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release PRs which should be merged for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants