Skip to content

Commit 18fc2b8

Browse files
committed
remove additional incorrect result_t settings
1 parent 68f80ea commit 18fc2b8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

hls4ml/model/optimizer/passes/merge_const.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def transform(self, model, node):
5454
const_node0.set_attr('quantizer', quantizer) # overwrite the quantizer
5555
if quantizer:
5656
const_node0.set_attr('quantizer', quantizer)
57-
const_node0.types['result_t'] = quantizer.hls_type
5857
const_node0.get_output_variable().type.precision = quantizer.hls_type
5958
const_node0.set_attr('value', new_val)
6059

hls4ml/model/optimizer/passes/quant_opt.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def transform(self, model, node):
194194

195195
const_node = node.get_input_node(node.inputs[0])
196196
const_node.set_attr('quantizer', quantizer)
197-
const_node.set_attr('result_t', precision)
198197
const_node.get_output_variable().type.precision = precision
199198

200199
# Should we update the configuration to reflect the new precision? I don't think it's necessary
@@ -331,7 +330,6 @@ def transform(self, model, node):
331330
const_node.set_attr('value', new_val)
332331
const_node.set_attr('quantizer', quantizer)
333332

334-
const_node.types['result_t'].precision = precision
335333
const_node.get_output_variable().type.precision = precision
336334

337335
inshape = node.get_input_variable().shape

0 commit comments

Comments
 (0)