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
3c5d118c
Commit
3c5d118c
authored
May 13, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
May 13, 2020
Browse files
Internal change
PiperOrigin-RevId: 311428193
parent
460943f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/nlp/modeling/networks/encoder_scaffold.py
official/nlp/modeling/networks/encoder_scaffold.py
+2
-1
No files found.
official/nlp/modeling/networks/encoder_scaffold.py
View file @
3c5d118c
...
@@ -116,7 +116,8 @@ class EncoderScaffold(tf.keras.Model):
...
@@ -116,7 +116,8 @@ class EncoderScaffold(tf.keras.Model):
if
embedding_cls
:
if
embedding_cls
:
if
inspect
.
isclass
(
embedding_cls
):
if
inspect
.
isclass
(
embedding_cls
):
self
.
_embedding_network
=
embedding_cls
(
embedding_cfg
)
self
.
_embedding_network
=
embedding_cls
(
**
embedding_cfg
)
if
embedding_cfg
else
embedding_cls
()
else
:
else
:
self
.
_embedding_network
=
embedding_cls
self
.
_embedding_network
=
embedding_cls
inputs
=
self
.
_embedding_network
.
inputs
inputs
=
self
.
_embedding_network
.
inputs
...
...
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