-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Torch] Drop
PTQuantizerInsertionCommand
(#2584)
Preparation for #2531 ### Changes 1) `PTQuantizerInsertionCommand` is removed and replaced with create_quantizer_insertion_command function 2) `SharedFNInsertionCommand` updates with one new attribute: compression_module_type 3) `ExtraOpCallHook` doesn't require context in constructor anymore 4) Multidevice support is moved from `apply_quantizers_insertion_commands_transformation` to `apply_insertion_transformation` ### Reason for changes 1) To make it easier to store and restore commands: less commands - less amount of adapters are needed 2) To make it possible to express `PTQuantizerInsertionCommand` by `SharedFNInsertionCommand` 3) To make it possible to create `ExtraOpCallHook` outside of the `PTModelTransformer` 4) To unify multidevice support for all insertion operations ### Related tickets 2531 ### Tests 1)`test_quantizer_insertion_transformation` is updated 2) - 3) `test_shared_fn_insertion_point` is updated 4) `test_pt_insertion_command` is introduced
- Loading branch information
1 parent
fa8b702
commit f7a5660
Showing
21 changed files
with
403 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.