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
67efd3ab
Commit
67efd3ab
authored
Aug 26, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 328595044
parent
c814f04d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/modeling/networks/mobile_bert_encoder.py
official/nlp/modeling/networks/mobile_bert_encoder.py
+1
-1
No files found.
official/nlp/modeling/networks/mobile_bert_encoder.py
View file @
67efd3ab
...
@@ -480,7 +480,7 @@ class MobileBERTEncoder(tf.keras.Model):
...
@@ -480,7 +480,7 @@ class MobileBERTEncoder(tf.keras.Model):
input_mask
=
tf
.
keras
.
layers
.
Input
(
input_mask
=
tf
.
keras
.
layers
.
Input
(
shape
=
(
None
,),
dtype
=
tf
.
int32
,
name
=
'input_mask'
)
shape
=
(
None
,),
dtype
=
tf
.
int32
,
name
=
'input_mask'
)
type_ids
=
tf
.
keras
.
layers
.
Input
(
type_ids
=
tf
.
keras
.
layers
.
Input
(
shape
=
(
None
,),
dtype
=
tf
.
int32
,
name
=
'input_
token_
type_ids'
)
shape
=
(
None
,),
dtype
=
tf
.
int32
,
name
=
'input_type_ids'
)
self
.
inputs
=
[
input_ids
,
input_mask
,
type_ids
]
self
.
inputs
=
[
input_ids
,
input_mask
,
type_ids
]
attention_mask
=
layers
.
SelfAttentionMask
()([
input_ids
,
input_mask
])
attention_mask
=
layers
.
SelfAttentionMask
()([
input_ids
,
input_mask
])
...
...
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