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
f2c76e41
Commit
f2c76e41
authored
Sep 02, 2020
by
A. Unique TensorFlower
Browse files
Merge pull request #8604 from Ruomei:toupstream/clusteringexample
PiperOrigin-RevId: 329801211
parents
31a8c918
a87bb185
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
official/requirements.txt
official/requirements.txt
+1
-1
official/vision/image_classification/resnet/common.py
official/vision/image_classification/resnet/common.py
+7
-0
No files found.
official/requirements.txt
View file @
f2c76e41
...
@@ -9,7 +9,7 @@ psutil>=5.4.3
...
@@ -9,7 +9,7 @@ psutil>=5.4.3
py-cpuinfo>=3.3.0
py-cpuinfo>=3.3.0
scipy>=0.19.1
scipy>=0.19.1
tensorflow-hub>=0.6.0
tensorflow-hub>=0.6.0
tensorflow-model-optimization>=0.
2
.1
tensorflow-model-optimization>=0.
4
.1
tensorflow-datasets
tensorflow-datasets
tensorflow-addons
tensorflow-addons
dataclasses
dataclasses
...
...
official/vision/image_classification/resnet/common.py
View file @
f2c76e41
...
@@ -353,6 +353,13 @@ def define_pruning_flags():
...
@@ -353,6 +353,13 @@ def define_pruning_flags():
flags
.
DEFINE_integer
(
'pruning_frequency'
,
100
,
'Frequency for pruning.'
)
flags
.
DEFINE_integer
(
'pruning_frequency'
,
100
,
'Frequency for pruning.'
)
def
define_clustering_flags
():
"""Define flags for clustering methods."""
flags
.
DEFINE_string
(
'clustering_method'
,
None
,
'None (no clustering) or selective_clustering '
'(cluster last three Conv2D layers of the model).'
)
def
get_synth_input_fn
(
height
,
def
get_synth_input_fn
(
height
,
width
,
width
,
num_channels
,
num_channels
,
...
...
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