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

[Transform] change fixpoint condition for AnnotateResources

parent e258c63f
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,6 @@ class AnnotateResources(Transformation): ...@@ -49,7 +49,6 @@ class AnnotateResources(Transformation):
def apply(self, model): def apply(self, model):
graph = model.graph graph = model.graph
graph_modified = False
if self.mode == "estimate": if self.mode == "estimate":
res_fxn = res_estimation res_fxn = res_estimation
elif self.mode == "hls": elif self.mode == "hls":
...@@ -61,6 +60,5 @@ class AnnotateResources(Transformation): ...@@ -61,6 +60,5 @@ class AnnotateResources(Transformation):
if _is_fpgadataflow_node(node) and node.name in res_dict.keys(): if _is_fpgadataflow_node(node) and node.name in res_dict.keys():
op_inst = registry.getCustomOp(node) op_inst = registry.getCustomOp(node)
op_inst.set_nodeattr("res_" + self.mode, str(res_dict[node.name])) op_inst.set_nodeattr("res_" + self.mode, str(res_dict[node.name]))
graph_modified = True
return (model, graph_modified) return (model, False)
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