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
5ed215b2
Commit
5ed215b2
authored
Jan 22, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jan 22, 2020
Browse files
Remove set_shape as tfhub module updated.
PiperOrigin-RevId: 290977517
parent
d6117ed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
official/nlp/bert_models.py
official/nlp/bert_models.py
+0
-3
No files found.
official/nlp/bert_models.py
View file @
5ed215b2
...
...
@@ -309,9 +309,6 @@ def squad_model(bert_config,
core_model
=
hub
.
KerasLayer
(
hub_module_url
,
trainable
=
True
)
_
,
sequence_output
=
core_model
(
[
input_word_ids
,
input_mask
,
input_type_ids
])
# Sets the shape manually due to a bug in TF shape inference.
# TODO(hongkuny): remove this once shape inference is correct.
sequence_output
.
set_shape
((
None
,
max_seq_length
,
bert_config
.
hidden_size
))
squad_logits_layer
=
BertSquadLogitsLayer
(
initializer
=
initializer
,
float_type
=
float_type
,
name
=
'squad_logits'
)
...
...
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