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
325609e2
Commit
325609e2
authored
Aug 11, 2017
by
Neal Wu
Committed by
GitHub
Aug 11, 2017
Browse files
Remove unused _max_pool method (#2186)
parent
70b894bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
tutorials/image/cifar10_estimator/model_base.py
tutorials/image/cifar10_estimator/model_base.py
+0
-7
No files found.
tutorials/image/cifar10_estimator/model_base.py
View file @
325609e2
...
@@ -211,13 +211,6 @@ class ResNet(object):
...
@@ -211,13 +211,6 @@ class ResNet(object):
tf
.
logging
.
info
(
'image after unit %s: %s'
,
name_scope
,
x
.
get_shape
())
tf
.
logging
.
info
(
'image after unit %s: %s'
,
name_scope
,
x
.
get_shape
())
return
x
return
x
def
_max_pool
(
self
,
x
,
pool_size
,
stride
):
with
tf
.
name_scope
(
'max_pool'
)
as
name_scope
:
x
=
tf
.
layers
.
max_pooling2d
(
x
,
pool_size
,
stride
,
padding
=
'SAME'
,
data_format
=
self
.
_data_format
)
tf
.
logging
.
info
(
'image after unit %s: %s'
,
name_scope
,
x
.
get_shape
())
return
x
def
_global_avg_pool
(
self
,
x
):
def
_global_avg_pool
(
self
,
x
):
with
tf
.
name_scope
(
'global_avg_pool'
)
as
name_scope
:
with
tf
.
name_scope
(
'global_avg_pool'
)
as
name_scope
:
assert
x
.
get_shape
().
ndims
==
4
assert
x
.
get_shape
().
ndims
==
4
...
...
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