Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci/markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ MD037: false # Spaces inside emphasis markers
MD041: false # First line
MD045: false # no-alt-text
MD059: false # descriptive-link-text
MD060: false # table-column-style
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ default_language_version:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.12
hooks:
- id: ruff-check
args: [--fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
rev: v0.48.0
hooks:
- id: markdownlint
args: [--config=.ci/markdownlint.yaml]

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.2.0
rev: v9.8.0
hooks:
- id: cspell
args:
Expand All @@ -29,7 +29,7 @@ repos:
files: (^nncf/.*\.py$|.*\.md$)

- repo: https://github.com/rhysd/actionlint
rev: v1.7.9
rev: v1.7.12
hooks:
- id: actionlint

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,10 @@ def _get_ratio_defining_params(
if self._all_layers:
embedding_params = list(
filter(
lambda wp: wp.node_with_weight.metatype in self._backend_entity.embedding_metatypes
and len(wp.reduction_axes) == 1,
lambda wp: (
wp.node_with_weight.metatype in self._backend_entity.embedding_metatypes
and len(wp.reduction_axes) == 1
),
all_weight_params,
)
)
Expand Down
6 changes: 3 additions & 3 deletions tests/onnx/quantization/test_ptq_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def test_compression(tmp_path, model_dir, data_dir, test_model):
transforms.ToTensor(),
normalize,
transforms.Lambda(
lambda images: torch.moveaxis(images, 0, 2)
if test_model.model_name == "efficientnet-lite4-11"
else images
lambda images: (
torch.moveaxis(images, 0, 2) if test_model.model_name == "efficientnet-lite4-11" else images
)
),
]
),
Expand Down