Explorar el Código

Merge pull request #1045 from ScottSWu/master

Fix division changing dtype to float in python3
Neal Wu hace 8 años
padre
commit
6373c6f4cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compression/encoder.py

+ 1 - 1
compression/encoder.py

@@ -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()