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
223b121d
Commit
223b121d
authored
Oct 08, 2021
by
Frederick Liu
Committed by
A. Unique TensorFlower
Oct 08, 2021
Browse files
Internal change
PiperOrigin-RevId: 401911051
parent
65d1c7ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/vision/beta/projects/vit/modeling/nn_blocks.py
official/vision/beta/projects/vit/modeling/nn_blocks.py
+2
-2
No files found.
official/vision/beta/projects/vit/modeling/nn_blocks.py
View file @
223b121d
...
...
@@ -15,11 +15,11 @@
"""Keras-based TransformerEncoder block layer."""
import
tensorflow
as
tf
from
official.nlp
import
keras_nlp
from
official.nlp
import
modeling
from
official.vision.beta.modeling.layers.nn_layers
import
StochasticDepth
class
TransformerEncoderBlock
(
keras_nlp
.
layers
.
TransformerEncoderBlock
):
class
TransformerEncoderBlock
(
modeling
.
layers
.
TransformerEncoderBlock
):
"""TransformerEncoderBlock layer with stochastic depth."""
def
__init__
(
self
,
*
args
,
stochastic_depth_drop_rate
=
0.0
,
**
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