Skip to content

[quantization] Refactor observer traversal to separate local and recursive loop#733

Merged
mhs4670go merged 1 commit into
Samsung:mainfrom
mhs4670go:fi
May 27, 2026
Merged

[quantization] Refactor observer traversal to separate local and recursive loop#733
mhs4670go merged 1 commit into
Samsung:mainfrom
mhs4670go:fi

Conversation

@mhs4670go

Copy link
Copy Markdown
Contributor

Update QuantModuleBase so _all_observers() is reserved for observers owned directly by each wrapper, while public named_observers()/get_observer() can recursively enumerate child quant modules with qualified names.

This avoids double-processing child observers during calibration/freeze while preserving recursive observer lookup for debugging and tests.

Related: #494 (comment)

TICO-DCO-1.0-Signed-off-by: seongwoo mhs4670go@naver.com

…rsive lookup

Update QuantModuleBase so _all_observers() is reserved for observers
owned directly by each wrapper, while public named_observers()/get_observer()
can recursively enumerate child quant modules with qualified names.

This avoids double-processing child observers during calibration/freeze while
preserving recursive observer lookup for debugging and tests.

TICO-DCO-1.0-Signed-off-by: seongwoo <mhs4670go@naver.com>
@mhs4670go mhs4670go requested a review from stamalakhov May 27, 2026 12:21

@stamalakhov stamalakhov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mhs4670go mhs4670go merged commit 5d1e089 into Samsung:main May 27, 2026
7 checks passed
@mhs4670go mhs4670go deleted the fi branch May 27, 2026 22:50
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