We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157d808 commit ab67851Copy full SHA for ab67851
src/qonnx/transformation/general.py
@@ -342,11 +342,11 @@ def apply(self, model):
342
# set specified defaults
343
default_values = []
344
for key, value in model_config["Defaults"].items():
345
- assert (len(value) % 2 == 0)
+ assert len(value) % 2 == 0
346
if key not in model_config:
347
for val, op in zip(value[::2], value[1::2]):
348
- default_values.append((key, val, op))
349
- assert (not (op == "all" and len(value) > 2))
+ default_values.append((key, val, op))
+ assert not (op == "all" and len(value) > 2)
350
default_configs = {key: val for key, val, op in default_values if op == "all" or node.op_type in op}
351
for attr, value in default_configs.items():
352
inst.set_nodeattr(attr, value)
0 commit comments