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
f2f26a8b
Commit
f2f26a8b
authored
May 29, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
May 29, 2020
Browse files
Internal change
PiperOrigin-RevId: 313812017
parent
f4baddb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
official/nlp/modeling/layers/transformer_scaffold.py
official/nlp/modeling/layers/transformer_scaffold.py
+6
-6
No files found.
official/nlp/modeling/layers/transformer_scaffold.py
View file @
f2f26a8b
...
...
@@ -176,16 +176,16 @@ class TransformerScaffold(tf.keras.layers.Layer):
if
self
.
_feedforward_block
is
None
:
self
.
_intermediate_dense
=
tf
.
keras
.
layers
.
experimental
.
EinsumDense
(
"
...x,xy->...y
"
,
output_shape
=
self
.
_intermediate_size
,
bias_axes
=
"
y
"
,
"
abc,cd->abd
"
,
output_shape
=
(
None
,
self
.
_intermediate_size
)
,
bias_axes
=
"
d
"
,
activation
=
self
.
_intermediate_activation
,
name
=
"intermediate"
,
**
common_kwargs
)
self
.
_output_dense
=
tf
.
keras
.
layers
.
experimental
.
EinsumDense
(
"
...x,xy->...y
"
,
output_shape
=
hidden_size
,
bias_axes
=
"
y
"
,
"
abc,cd->abd
"
,
output_shape
=
(
None
,
hidden_size
)
,
bias_axes
=
"
d
"
,
name
=
"output"
,
**
common_kwargs
)
...
...
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