Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions hls4ml/backends/vivado/passes/core_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,6 @@ def format(self, node):
# Only used in stable (max-normalized) implementation
input_t = node.get_input_variable().type.precision
width, iwidth, signed = input_t.width, input_t.integer, input_t.signed # noqa: F841
width, iwidth = width - signed, iwidth - signed
if signed:
# Fix table size if too large
exp_table_size = params['inv_table_size']
params['exp_table_size'] = str(min(int(exp_table_size), 2**width))
params['inp_norm_t_str'] = f'ap_ufixed<{width}, {iwidth}>'
else:
params['inp_norm_t_str'] = params['inp_norm_t'].name # type: ignore
Expand Down
Loading