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
8fcf177e
Commit
8fcf177e
authored
Sep 02, 2021
by
Isha Arkatkar
Committed by
A. Unique TensorFlower
Sep 02, 2021
Browse files
Internal change
PiperOrigin-RevId: 394577222
parent
2cd6f1c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
official/vision/image_classification/resnet/resnet_model.py
official/vision/image_classification/resnet/resnet_model.py
+1
-2
No files found.
official/vision/image_classification/resnet/resnet_model.py
View file @
8fcf177e
...
...
@@ -311,8 +311,7 @@ def resnet50(num_classes,
x
=
layers
.
GlobalAveragePooling2D
()(
x
)
x
=
layers
.
Dense
(
num_classes
,
kernel_initializer
=
tf
.
compat
.
v1
.
keras
.
initializers
.
random_normal
(
stddev
=
0.01
),
kernel_initializer
=
tf
.
initializers
.
random_normal
(
stddev
=
0.01
),
kernel_regularizer
=
_gen_l2_regularizer
(
use_l2_regularizer
),
bias_regularizer
=
_gen_l2_regularizer
(
use_l2_regularizer
),
name
=
'fc1000'
)(
...
...
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