Skip to content
Snippets Groups Projects
Commit 582aed32 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Read coefs as numpy float array.

parent d73ab919
Branches
No related tags found
1 merge request!420Resolve RTSD-264
......@@ -113,9 +113,9 @@ def read_coefficients_file(filepathname):
with open(filepathname, 'r') as fp:
for line in fp:
if line.strip(): # skip empty line
s = int(line) # one coef per line
s = float(line) # one coef per line
coefs.append(s)
return coefs
return np.array(coefs)
def one_bit_quantizer(x):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment