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

[ChannelwiseOp] promote all dtypes to odt for correct add operation

parent d68d26bd
No related branches found
No related tags found
No related merge requests found
...@@ -354,9 +354,9 @@ class ChannelwiseOp_Batch(HLSCustomOp): ...@@ -354,9 +354,9 @@ class ChannelwiseOp_Batch(HLSCustomOp):
elif func == "cmp_ge": elif func == "cmp_ge":
func_str = "comp::greater_equal<%s, %s>" % (idt_hls, pdt_hls) func_str = "comp::greater_equal<%s, %s>" % (idt_hls, pdt_hls)
elif func == "add": elif func == "add":
func_str = "comp::add<%s, %s, %s>" % (idt_hls, pdt_hls, odt_hls) func_str = "comp::add<%s, %s, %s>" % (odt_hls, odt_hls, odt_hls)
elif func == "mul": elif func == "mul":
func_str = "comp::mul<%s, %s, %s>" % (idt_hls, pdt_hls, odt_hls) func_str = "comp::mul<%s, %s, %s>" % (odt_hls, odt_hls, odt_hls)
else: else:
raise Exception( raise Exception(
"""Invalid value for attribute Func! Is currently set to: {} """Invalid value for attribute Func! Is currently set to: {}
......
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