Skip to content

[Common] Disable batchwise statistics for tensor with empty shape #3558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

daniil-lyakhov
Copy link
Collaborator

Changes

Batchwise statistics collection is automatically disables when applies to a tensor with an empty shape

Reason for changes

XNNPACKQuantizer with Swin_v2 model is requesting to quantize a scalar. It is working correctly with the batch size == 1, but during the validation with bigger batch size it raises the error as minmax is trying to aggregate by an non existing dimention
image

Related tickets

#3231

Tests

test_stisticstics_no_batch_size is introduced

@github-actions github-actions bot added the NNCF Common Pull request that updates NNCF Common label Jun 24, 2025
@daniil-lyakhov daniil-lyakhov marked this pull request as ready for review June 24, 2025 14:47
@daniil-lyakhov daniil-lyakhov requested a review from a team as a code owner June 24, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NNCF Common Pull request that updates NNCF Common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant