Skip to content

Commit 83d337e

Browse files
committed
Merge branch 'main' into fix/op_version-main-merge-yaman-changes
2 parents 4671158 + f2602d1 commit 83d337e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ install_requires =
4949
importlib-metadata
5050
attrs>=22.2.0
5151
clize>=5.0.1
52-
protobuf==3.20.3
52+
protobuf>=3.20.3
5353
bitstring>=3.1.7
5454
numpy>=1.24.1
5555
onnx>=1.13.0

src/qonnx/core/modelwrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def transform(
183183
if self.fix_float64:
184184
(transformed_model, model_was_changed) = DoubleToSingleFloat().apply(transformed_model)
185185

186-
if apply_to_subgraphs and not use_preorder_traversal:
186+
if apply_to_subgraphs and (use_preorder_traversal is False):
187187
transformed_model.transform_subgraphs(
188188
transformation, make_deepcopy, cleanup, apply_to_subgraphs, use_preorder_traversal
189189
)

src/qonnx/transformation/fixedpt_quantize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def apply(self, model: ModelWrapper):
6767
if current_dtype.is_fixed_point():
6868
warn(
6969
f"Tensor {tname} is already a {current_dtype.get_canonical_name()} type. "
70-
f"Recasting to {tdtype.get_canonical_name()}"
70+
"Recasting to {tdtype.get_canonical_name()}"
7171
)
7272

7373
in1_t_new = self.round_func(in1_t.astype(np.float32) / tdtype.scale_factor()) * tdtype.scale_factor()

0 commit comments

Comments
 (0)