Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
6373c6f4
Commit
6373c6f4
authored
Feb 21, 2017
by
Neal Wu
Committed by
GitHub
Feb 21, 2017
Browse files
Merge pull request #1045 from ScottSWu/master
Fix division changing dtype to float in python3
parents
7d0ddaf3
5d981d57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
compression/encoder.py
compression/encoder.py
+1
-1
No files found.
compression/encoder.py
View file @
6373c6f4
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment