Commit 6373c6f4 authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #1045 from ScottSWu/master

Fix division changing dtype to float in python3
parents 7d0ddaf3 5d981d57
......@@ -92,7 +92,7 @@ def main(_):
int_codes = np.asarray([x.astype(np.int8) for x in results])
# Convert int codes to binary.
int_codes = (int_codes + 1)/2
int_codes = (int_codes + 1)//2
export = np.packbits(int_codes.reshape(-1))
output = io.BytesIO()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment