Skip to content

[Good First Issue][NNCF]: Move is_weight_compression_needed function to common #3668

@daniil-lyakhov

Description

@daniil-lyakhov

Context

The is_weight_compression_needed function is defined for each supported backend, but the logic is actually equal and could be just shared among the backends

What needs to be done?

The task is to remove this function from the backend-specific files

  1. Remove FXBackendParameters and move BackendParameters to the common file

  2. Remove FX is_weight_compression_needed and move is_weight_compression_needed to the common file

  3. Delete src/nncf/experimental/torch/fx/quantization/backend_parameters.py and src/nncf/openvino/quantization/backend_parameters.py empty files

  4. Use the new common is_weight_compression_needed function in compression backends and update the tests if needed

Example Pull Requests

#3230
#3296
#2856

Resources

Contact points

@daniil-lyakhov

Ticket

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions