Skip to content

Commit 1474ad1

Browse files
committed
naughty flake8 E231
1 parent ba19daa commit 1474ad1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hls4ml/backends/fpga/passes/hgq_proxy_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def generate_mask_fn(
3333
if b == 0:
3434
fn = f'out[{idx}] = 0;'
3535
else:
36-
fn = f'out[{idx}] = {to_fixed(k,b,i,RND,SAT)}(inp[{idx}]);'
36+
fn = f'out[{idx}] = {to_fixed(k, b, i, RND, SAT)}(inp[{idx}]);'
3737
masks.append(f' {fn}')
3838
body = "\n".join(masks)
3939
mask_fn = f'''

test/pytest/test_hgq_layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _run_synth_match_test(proxy: keras.Model, data, io_type: str, backend: str,
5959
mismatch_ph = p != h
6060
assert (
6161
np.sum(mismatch_ph) == 0
62-
), f"Proxy-HLS4ML mismatch for out {i}: {np.sum(np.any(mismatch_ph,axis=1))} out of {data_len} samples are different. Sample: {p[mismatch_ph].ravel()[:5]} vs {h[mismatch_ph].ravel()[:5]}" # noqa: E501
62+
), f"Proxy-HLS4ML mismatch for out {i}: {np.sum(np.any(mismatch_ph, axis=1))} out of {data_len} samples are different. Sample: {p[mismatch_ph].ravel()[:5]} vs {h[mismatch_ph].ravel()[:5]}" # noqa: E501
6363
else:
6464
cond(p, h)
6565
except AssertionError as e:

0 commit comments

Comments
 (0)