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
31dccbad
Commit
31dccbad
authored
Feb 21, 2017
by
Neal Wu
Committed by
GitHub
Feb 21, 2017
Browse files
Merge pull request #1025 from shahparth123/patch-1
Updated concat_v2 to concat for 1.0 compatibility
parents
9baf6eac
dad7dcbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
im2txt/im2txt/show_and_tell_model.py
im2txt/im2txt/show_and_tell_model.py
+2
-2
No files found.
im2txt/im2txt/show_and_tell_model.py
View file @
31dccbad
...
...
@@ -264,7 +264,7 @@ class ShowAndTellModel(object):
if
self
.
mode
==
"inference"
:
# In inference mode, use concatenated states for convenient feeding and
# fetching.
tf
.
concat
_v2
(
initial_state
,
1
,
name
=
"initial_state"
)
tf
.
concat
(
initial_state
,
1
,
name
=
"initial_state"
)
# Placeholder for feeding a batch of concatenated states.
state_feed
=
tf
.
placeholder
(
dtype
=
tf
.
float32
,
...
...
@@ -278,7 +278,7 @@ class ShowAndTellModel(object):
state
=
state_tuple
)
# Concatentate the resulting state.
tf
.
concat
_v2
(
state_tuple
,
1
,
name
=
"state"
)
tf
.
concat
(
state_tuple
,
1
,
name
=
"state"
)
else
:
# Run the batch of sequence embeddings through the LSTM.
sequence_length
=
tf
.
reduce_sum
(
self
.
input_mask
,
1
)
...
...
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