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
906d712e
Commit
906d712e
authored
Apr 29, 2022
by
Jaehong Kim
Committed by
A. Unique TensorFlower
Apr 29, 2022
Browse files
Internal change
PiperOrigin-RevId: 445390384
parent
f58534eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
official/vision/modeling/backbones/mobilenet.py
official/vision/modeling/backbones/mobilenet.py
+1
-2
No files found.
official/vision/modeling/backbones/mobilenet.py
View file @
906d712e
...
@@ -861,8 +861,7 @@ class MobileNet(tf.keras.Model):
...
@@ -861,8 +861,7 @@ class MobileNet(tf.keras.Model):
net
=
block
(
net
)
net
=
block
(
net
)
elif
block_def
.
block_fn
==
'gpooling'
:
elif
block_def
.
block_fn
==
'gpooling'
:
net
=
layers
.
GlobalAveragePooling2D
()(
net
)
net
=
layers
.
GlobalAveragePooling2D
(
keepdims
=
True
)(
net
)
net
=
layers
.
Reshape
((
1
,
1
,
net
.
shape
[
1
]))(
net
)
else
:
else
:
raise
ValueError
(
'Unknown block type {} for layer {}'
.
format
(
raise
ValueError
(
'Unknown block type {} for layer {}'
.
format
(
...
...
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