Skip to content

Commit

Permalink
Fix default value for ignored scope in calibrate.py (#2759)
Browse files Browse the repository at this point in the history
### Changes

Change None to []

### Reason for changes

Incorrect API usage

### Related tickets

144809

### Tests

Manually tested on failed scenario
  • Loading branch information
kshpv authored Jun 25, 2024
1 parent a4971f1 commit 2871993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/openvino/tools/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def map_ignored_scope(ignored):
if op.get("attributes") is not None:
raise ValueError('"attributes" in the ignored operations ' "are not supported")
ignored_operations.append(op["type"])
return {"ignored_scope": IgnoredScope(names=ignored.get("scope"), types=ignored_operations)}
return {"ignored_scope": IgnoredScope(names=ignored.get("scope", []), types=ignored_operations)}


def map_preset(preset):
Expand Down

0 comments on commit 2871993

Please sign in to comment.