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
e3f8ea22
Commit
e3f8ea22
authored
Dec 02, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 02, 2020
Browse files
Internal change
PiperOrigin-RevId: 345383199
parent
abcb643f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/modeling/ops/beam_search.py
official/nlp/modeling/ops/beam_search.py
+1
-1
No files found.
official/nlp/modeling/ops/beam_search.py
View file @
e3f8ea22
...
@@ -398,7 +398,7 @@ class SequenceBeamSearch(tf.Module):
...
@@ -398,7 +398,7 @@ class SequenceBeamSearch(tf.Module):
raise
TypeError
(
raise
TypeError
(
"initial_cache element for key '%s' has dtype %s that does not "
"initial_cache element for key '%s' has dtype %s that does not "
"match SequenceBeamSearch's dtype of %s. Value: %s"
%
"match SequenceBeamSearch's dtype of %s. Value: %s"
%
(
key
,
value
.
dtype
.
name
,
self
.
dtype
.
name
,
inner_value
))
(
key
,
inner_
value
.
dtype
.
name
,
self
.
dtype
.
name
,
inner_value
))
# Current loop index (starts at 0)
# Current loop index (starts at 0)
cur_index
=
tf
.
constant
(
0
)
cur_index
=
tf
.
constant
(
0
)
...
...
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