Skip to content

Commit 8552c87

Browse files
Merge pull request #57 from eki-project/fix/hls_resource_estimate_as_int
[Fix] Provide HLS estimates as ints
2 parents a1b928c + 76938e5 commit 8552c87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/finn/analysis/fpgadataflow/hls_synth_res_estimation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def hls_synth_res_estimation(model):
7070
root = tree.getroot()
7171
for item in root.findall("AreaEstimates/Resources"):
7272
for child in item:
73-
res_dict[node.name][child.tag] = child.text
73+
if child.text is not None:
74+
res_dict[node.name][child.tag] = int(child.text)
7475
else:
7576
warnings.warn(
7677
"""Could not find report files, values will be set to zero

0 commit comments

Comments
 (0)