diff --git a/backends/arm/arm_backend.py b/backends/arm/arm_backend.py index fc638647b46..e2335c07b87 100644 --- a/backends/arm/arm_backend.py +++ b/backends/arm/arm_backend.py @@ -57,7 +57,7 @@ def vgf_compile_spec( f"Invalid TOSA version: {tosa_version}" ) - if not ("FP" or "INT" in tosa_profiles): + if "FP" not in tosa_profiles and "INT" not in tosa_profiles: raise ValueError( "Arm backend only supports converter-backend for FP or INT. " f"Invalid TOSA profile: {tosa_profiles}"