Skip to content
Snippets Groups Projects
Unverified Commit 53455e09 authored by Yaman Umuroglu's avatar Yaman Umuroglu Committed by GitHub
Browse files

Merge pull request #196 from quetric/feature/remove_flatten_with_transpose

Feature/remove flatten with transpose
parents d385a16e 4513e480
No related branches found
No related tags found
No related merge requests found
......@@ -36,5 +36,15 @@ class RemoveCNVtoFCFlatten(Transformation):
graph_modified = True
consumer.input[0] = n.input[0]
graph.node.remove(n)
elif producer.op_type == "Transpose":
transp_node = producer
producer = model.find_producer(transp_node.input[0])
if _is_fpgadataflow_node(producer) is True:
consumer = model.find_consumer(n.output[0])
if _is_fpgadataflow_node(consumer) is True:
graph_modified = True
consumer.input[0] = transp_node.input[0]
graph.node.remove(n)
graph.node.remove(transp_node)
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