diff --git a/src/qonnx/transformation/general.py b/src/qonnx/transformation/general.py index 4ac87036..fa4acdbf 100644 --- a/src/qonnx/transformation/general.py +++ b/src/qonnx/transformation/general.py @@ -342,11 +342,11 @@ def apply(self, model): # set specified defaults default_values = [] for key, value in model_config["Defaults"].items(): - assert (len(value) % 2 == 0) + assert len(value) % 2 == 0 if key not in model_config: for val, op in zip(value[::2], value[1::2]): - default_values.append((key, val, op)) - assert (not (op == "all" and len(value) > 2)) + default_values.append((key, val, op)) + assert not (op == "all" and len(value) > 2) default_configs = {key: val for key, val, op in default_values if op == "all" or node.op_type in op} for attr, value in default_configs.items(): inst.set_nodeattr(attr, value)