"git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "a87777bff379377cf72387a1c9831ea4d6ec4e93"
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(_): ...@@ -92,7 +92,7 @@ def main(_):
int_codes = np.asarray([x.astype(np.int8) for x in results]) int_codes = np.asarray([x.astype(np.int8) for x in results])
# Convert int codes to binary. # Convert int codes to binary.
int_codes = (int_codes + 1)/2 int_codes = (int_codes + 1)//2
export = np.packbits(int_codes.reshape(-1)) export = np.packbits(int_codes.reshape(-1))
output = io.BytesIO() 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