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
39b7dcf9
"syntaxnet/examples/dragnn/trainer_tutorial.ipynb" did not exist on "7d30a017fe50b648be6dee544f8059bde52db562"
Unverified
Commit
39b7dcf9
authored
Mar 17, 2018
by
Yuxin Wu
Committed by
GitHub
Mar 17, 2018
Browse files
Update build_imagenet_data.py
parent
7e4c66b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/inception/inception/data/build_imagenet_data.py
research/inception/inception/data/build_imagenet_data.py
+1
-1
No files found.
research/inception/inception/data/build_imagenet_data.py
View file @
39b7dcf9
...
...
@@ -171,7 +171,7 @@ def _float_feature(value):
def
_bytes_feature
(
value
):
"""Wrapper for inserting bytes features into Example proto."""
if
isinstance
(
value
,
six
.
string
_type
s
):
if
six
.
PY3
and
isinstance
(
value
,
six
.
text
_type
):
value
=
six
.
binary_type
(
value
,
encoding
=
'utf-8'
)
return
tf
.
train
.
Feature
(
bytes_list
=
tf
.
train
.
BytesList
(
value
=
[
value
]))
...
...
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