Skip to content

Commit

Permalink
fixed bug in decoding the rb_const value for fp_mul and and
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcheng15 committed Nov 28, 2023
1 parent 3ec89e5 commit 18e2b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sam/onyx/hw_nodes/compute_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def configure(self, attributes):
rb_const = attributes["rb_const"].strip('"')
if "." in rb_const:
# constant is a floating point
rb_const = float2bfbin(float(rb_const))
rb_const = float(rb_const)
rb_const = int(float2bfbin(rb_const), 2)
else:
# it is a int
rb_const = int(rb_const)
Expand Down

0 comments on commit 18e2b2d

Please sign in to comment.