Skip to content

Commit ee2d227

Browse files
committed
Fix misspelled get_nodeattr
1 parent d7b398a commit ee2d227

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/finn/transformation/streamline/absorb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def apply(self, model: ModelWrapper):
112112
# convenient attribute manipulation
113113
threshold_op = getCustomOp(node)
114114
# Shift the output bias of the thresholding operator
115-
out_bias = threshold_op.get_node_attr("out_bias") + bias
115+
out_bias = threshold_op.get_nodeattr("out_bias") + bias
116116
# Derive the new output range due to shifting the bias
117117
# Note: We count thresholds steps on top of the bias
118118
new_min = out_bias
@@ -137,7 +137,7 @@ def apply(self, model: ModelWrapper):
137137
continue
138138

139139
# Remember the old datatype for some further checks and info
140-
old_odt = threshold_op.get_node_attr("out_dtype")
140+
old_odt = threshold_op.get_nodeattr("out_dtype")
141141

142142
# Check whether the datatype changes as this is something
143143
# the "user" should be aware of

0 commit comments

Comments
 (0)