Skip to content

Commit d462c48

Browse files
committed
minor
1 parent 875311c commit d462c48

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

hls4ml/model/optimizer/passes/bit_exact.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,6 @@ def transform(self, model, node: Layer):
842842
node.model.config.layer_name_precision[node.name] = str(new_type)
843843
return False
844844

845-
if not all(isinstance(l, FixedPointQuantizer) for l in out_layers):
846-
warn(f'Input {node.name} has unhandled high precision. Consider setting it manually before synthesising.')
847-
return False
848-
849845
sat_modes = [l.SAT for l in out_layers]
850846
sat_modes_set = set(sat_modes)
851847
rnd_modes = [l.RND for l in out_layers]

hls4ml/model/optimizer/passes/hgq_proxy_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def initialize(self):
4444
self.add_output_variable(shape, dims)
4545
self.set_attr('n_in', inp.size())
4646
self.table = self.attributes['table_data']
47-
self.attributes['table_size'] = len(self.table)
4847
self.table_size = len(self.table)
4948

5049
self.add_weights_variable(name='table')

hls4ml/templates/catapult/nnet_utils/nnet_merge.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,13 @@ template <class input1_T, class input2_T, class res_T, typename CONFIG_T>
6666
void maximum(input1_T data1[CONFIG_T::n_elem], input2_T data2[CONFIG_T::n_elem], res_T res[CONFIG_T::n_elem]) {
6767
for (int ii = 0; ii < CONFIG_T::n_elem; ii++) {
6868
res[ii] = (data1[ii] > data2[ii]) ? static_cast<res_T>(data1[ii]) : static_cast<res_T>(data2[ii]);
69-
res[ii] = (data1[ii] > data2[ii]) ? static_cast<res_T>(data1[ii]) : static_cast<res_T>(data2[ii]);
7069
}
7170
}
7271

7372
template <class input1_T, class input2_T, class res_T, typename CONFIG_T>
7473
void minimum(input1_T data1[CONFIG_T::n_elem], input2_T data2[CONFIG_T::n_elem], res_T res[CONFIG_T::n_elem]) {
7574
for (int ii = 0; ii < CONFIG_T::n_elem; ii++) {
7675
res[ii] = (data1[ii] < data2[ii]) ? static_cast<res_T>(data1[ii]) : static_cast<res_T>(data2[ii]);
77-
res[ii] = (data1[ii] < data2[ii]) ? static_cast<res_T>(data1[ii]) : static_cast<res_T>(data2[ii]);
7876
}
7977
}
8078

0 commit comments

Comments
 (0)