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
b7bb52f0
Commit
b7bb52f0
authored
Jan 31, 2022
by
Marc van Zee
Committed by
A. Unique TensorFlower
Jan 31, 2022
Browse files
Internal change
PiperOrigin-RevId: 425409937
parent
37c3e5ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/projects/vit/modeling/vit.py
official/projects/vit/modeling/vit.py
+1
-1
No files found.
official/projects/vit/modeling/vit.py
View file @
b7bb52f0
...
@@ -145,7 +145,7 @@ class Encoder(tf.keras.layers.Layer):
...
@@ -145,7 +145,7 @@ class Encoder(tf.keras.layers.Layer):
self
.
_encoder_layers
=
[]
self
.
_encoder_layers
=
[]
# Set layer norm epsilons to 1e-6 to be consistent with JAX implementation.
# Set layer norm epsilons to 1e-6 to be consistent with JAX implementation.
# https://flax.readthedocs.io/en/latest/_autosummary/flax.nn.LayerNorm.html
# https://flax.readthedocs.io/en/latest/_autosummary/flax.
deprecated.
nn.LayerNorm.html
for
i
in
range
(
self
.
_num_layers
):
for
i
in
range
(
self
.
_num_layers
):
encoder_layer
=
nn_blocks
.
TransformerEncoderBlock
(
encoder_layer
=
nn_blocks
.
TransformerEncoderBlock
(
inner_activation
=
activations
.
gelu
,
inner_activation
=
activations
.
gelu
,
...
...
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