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

[StreamingFC] use <= in codegen to match our multithres behavior

parent 738113e8
No related branches found
No related tags found
No related merge requests found
......@@ -208,13 +208,15 @@ class StreamingFCLayer_Batch(HLSCustomOp):
export_odt = DataType.BINARY
odt_hls = export_odt.get_hls_datatype_str()
f_thresh.write(
"static ThresholdsActivation<{},{},{},{},{},{}> threshs = ".format(
"static ThresholdsActivation<{},{},{},{},{},{},{}> threshs \
= ".format(
self.get_nodeattr("TMEM"),
self.get_nodeattr("PE"),
threshold_tensor.shape[-1],
tdt_hls,
odt_hls,
self.get_nodeattr("ActVal"),
"std::less_equal<%s>" % tdt_hls,
)
)
f_thresh.write(thresholds_hls_code)
......
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