Skip to content

Commit 3755d3b

Browse files
authored
Arm backend: Correct checking of args in aot_arm_compiler (#17476)
`args.quantize` can never be `None` (since it is a `bool` and not an `Optional`). Correct a error check to instead check that it's `False`. Signed-off-by: Martin Lindström <Martin.Lindstroem@arm.com>
1 parent 5b99643 commit 3755d3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/arm/aot_arm_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def get_args():
630630
args = parser.parse_args()
631631

632632
if args.evaluate and (
633-
args.quantize is None or args.intermediates is None or (not args.delegate)
633+
(not args.quantize) or args.intermediates is None or (not args.delegate)
634634
):
635635
raise RuntimeError(
636636
"--evaluate requires --quantize, --intermediates and --delegate to be enabled."

0 commit comments

Comments
 (0)