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
7243a7d3
Commit
7243a7d3
authored
Aug 29, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 470819579
parent
34562fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/vision/modeling/layers/nn_layers.py
official/vision/modeling/layers/nn_layers.py
+1
-1
No files found.
official/vision/modeling/layers/nn_layers.py
View file @
7243a7d3
...
@@ -241,7 +241,7 @@ class StochasticDepth(tf.keras.layers.Layer):
...
@@ -241,7 +241,7 @@ class StochasticDepth(tf.keras.layers.Layer):
self
.
_drop_rate
=
stochastic_depth_drop_rate
self
.
_drop_rate
=
stochastic_depth_drop_rate
def
get_config
(
self
):
def
get_config
(
self
):
config
=
{
'drop_rate'
:
self
.
_drop_rate
}
config
=
{
'
stochastic_depth_
drop_rate'
:
self
.
_drop_rate
}
base_config
=
super
(
StochasticDepth
,
self
).
get_config
()
base_config
=
super
(
StochasticDepth
,
self
).
get_config
()
return
dict
(
list
(
base_config
.
items
())
+
list
(
config
.
items
()))
return
dict
(
list
(
base_config
.
items
())
+
list
(
config
.
items
()))
...
...
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