Skip to content

refactor(module): rename Module to TunableModule - #62

Open
lslusarczyk wants to merge 2 commits into
intel:mainfrom
lslusarczyk:refactor/tunable-module
Open

lslusarczyk wants to merge 2 commits into
intel:mainfrom
lslusarczyk:refactor/tunable-module

Conversation

@lslusarczyk

Copy link
Copy Markdown
Contributor

tt.Module is now tt.TunableModule.

The old name matched torch.nn.Module.
Code that needed both imported ours as WrapperModule, so one class had two names.
TunableModule says what the class is for.

The file moves from module/wrapper_module.py to module/tunable_module.py.
Code, tests, docs, examples and notebooks use the new name.
The API docs page moves to api/tuning/tunable_module.md.

This is a breaking change.
tt.Module has no alias.

@lslusarczyk
lslusarczyk marked this pull request as ready for review October 29, 2026 12:14
@lslusarczyk
lslusarczyk requested a review from a team as a code owner October 29, 2026 12:14
@PatKamin

Copy link
Copy Markdown
Contributor

Remove an exclamation mark from PR title and commit msg

`tt.Module` shared its name with `torch.nn.Module`.
Code that needed both imported ours as `WrapperModule`, so one class had two names.

The class is now `TunableModule` in `torch_tweak.torch.module.tunable_module`.
Code, tests, docs, examples and notebooks use the new name.

Signed-off-by: Łukasz Ślusarczyk <lukasz.slusarczyk@intel.com>
@lslusarczyk lslusarczyk changed the title refactor(module)!: rename Module to TunableModule refactor(module): rename Module to TunableModule Oct 29, 2026
@lslusarczyk
lslusarczyk force-pushed the refactor/tunable-module branch from b1fa127 to b2f3d77 Compare October 29, 2026 14:52
@lslusarczyk
lslusarczyk enabled auto-merge (squash) October 29, 2026 16:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants