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
a6e44930
Commit
a6e44930
authored
Jan 06, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jan 06, 2020
Browse files
Nit: allow use runtime shape for hub module without explicit set_shape.
PiperOrigin-RevId: 288423138
parent
1e1333fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/nlp/bert_models.py
official/nlp/bert_models.py
+2
-1
No files found.
official/nlp/bert_models.py
View file @
a6e44930
...
@@ -256,7 +256,8 @@ class BertSquadLogitsLayer(tf.keras.layers.Layer):
...
@@ -256,7 +256,8 @@ class BertSquadLogitsLayer(tf.keras.layers.Layer):
"""Implements call() for the layer."""
"""Implements call() for the layer."""
sequence_output
=
inputs
sequence_output
=
inputs
input_shape
=
sequence_output
.
shape
.
as_list
()
input_shape
=
tf_utils
.
get_shape_list
(
sequence_output
,
name
=
'sequence_output_tensor'
)
sequence_length
=
input_shape
[
1
]
sequence_length
=
input_shape
[
1
]
num_hidden_units
=
input_shape
[
2
]
num_hidden_units
=
input_shape
[
2
]
...
...
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