Skip to content
Snippets Groups Projects
Commit ade2ad7e authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

Merge branch 'fix/batchnorm_issue43' of https://github.com/AndreaRigoni/FINN into dev

parents 28fcd28d 4d0ceb1a
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,10 @@ class BatchNormToAffine(Transformation):
# remove old nodes
graph.node.remove(n)
if consumer is not None:
graph.node.remove(consumer)
if consumer.op_type == "Squeeze":
graph.node.remove(consumer)
if producer is not None:
graph.node.remove(producer)
if producer.op_type == "Unsqueeze":
graph.node.remove(producer)
model = model.transform(InferShapes())
return (model, graph_modified)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment