Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/winml/modelkit/pattern/op_input_gen/op_input_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,8 @@ def iter_qdq_combinations(
needs_weight_iteration = False

for input_name, is_constant in is_constant_map.items():
if kwargs.get(input_name) is None:
continue # Optional input not provided — nothing to QDQ-wrap, skip
if input_name not in qdq_config:
# Input not in QDQ config - skip this combination
# All inputs must be explicitly defined in qdq_config
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/analyze/core/test_qdq.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,9 @@ class TestIterQDQCombinations:
), # shape 3 * finite attributes 2 * 2 * 2 * optional combinations 2 * 2 * 2 * 4
(
"Pad",
512,
), # shape 8 * mode 4 * QDQ 4 * is_constant pads 2 * Tind 2 (actually axes not used)
1024,
), # shape 8 * mode 4 * QDQ 4 * is_constant pads 2 * constant_value present/absent 2
# * Tind 2 (axes not used)
# All Reduce* use this and it is enough
(
"ReduceSum",
Expand Down
Loading