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
10939e58
Commit
10939e58
authored
Dec 19, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 19, 2020
Browse files
Clean up
PiperOrigin-RevId: 348291651
parent
43ada248
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
8 additions
and
29 deletions
+8
-29
official/core/base_trainer_test.py
official/core/base_trainer_test.py
+1
-3
official/core/train_lib_test.py
official/core/train_lib_test.py
+0
-1
official/modeling/progressive/train_lib_test.py
official/modeling/progressive/train_lib_test.py
+0
-1
official/modeling/progressive/trainer_test.py
official/modeling/progressive/trainer_test.py
+1
-3
official/nlp/bert/model_training_utils_test.py
official/nlp/bert/model_training_utils_test.py
+3
-9
official/nlp/nhnet/models_test.py
official/nlp/nhnet/models_test.py
+1
-3
official/nlp/nhnet/trainer_test.py
official/nlp/nhnet/trainer_test.py
+1
-3
official/vision/image_classification/classifier_trainer_test.py
...al/vision/image_classification/classifier_trainer_test.py
+0
-3
official/vision/image_classification/mnist_test.py
official/vision/image_classification/mnist_test.py
+1
-3
No files found.
official/core/base_trainer_test.py
View file @
10939e58
...
...
@@ -34,9 +34,7 @@ def all_strategy_combinations():
strategy_combinations
.
default_strategy
,
strategy_combinations
.
cloud_tpu_strategy
,
strategy_combinations
.
one_device_strategy_gpu
,
],
mode
=
'eager'
,
)
],)
class
TrainerTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
...
...
official/core/train_lib_test.py
View file @
10939e58
...
...
@@ -68,7 +68,6 @@ class TrainTest(tf.test.TestCase, parameterized.TestCase):
strategy_combinations
.
cloud_tpu_strategy
,
strategy_combinations
.
one_device_strategy_gpu
,
],
mode
=
'eager'
,
flag_mode
=
[
'train'
,
'eval'
,
'train_and_eval'
],
run_post_eval
=
[
True
,
False
]))
def
test_end_to_end
(
self
,
distribution_strategy
,
flag_mode
,
run_post_eval
):
...
...
official/modeling/progressive/train_lib_test.py
View file @
10939e58
...
...
@@ -137,7 +137,6 @@ class TrainTest(tf.test.TestCase, parameterized.TestCase):
strategy_combinations
.
cloud_tpu_strategy
,
strategy_combinations
.
one_device_strategy_gpu
,
],
mode
=
'eager'
,
flag_mode
=
[
'train'
,
'eval'
,
'train_and_eval'
],
run_post_eval
=
[
True
,
False
]))
def
test_end_to_end
(
self
,
distribution_strategy
,
flag_mode
,
run_post_eval
):
...
...
official/modeling/progressive/trainer_test.py
View file @
10939e58
...
...
@@ -37,9 +37,7 @@ def all_strategy_combinations():
strategy_combinations
.
default_strategy
,
strategy_combinations
.
cloud_tpu_strategy
,
strategy_combinations
.
one_device_strategy_gpu
,
],
mode
=
'eager'
,
)
],)
def
get_exp_config
():
...
...
official/nlp/bert/model_training_utils_test.py
View file @
10939e58
...
...
@@ -40,9 +40,7 @@ def eager_strategy_combinations():
strategy_combinations
.
one_device_strategy_gpu
,
strategy_combinations
.
mirrored_strategy_with_gpu_and_cpu
,
strategy_combinations
.
mirrored_strategy_with_two_gpus
,
],
mode
=
'eager'
,
)
],)
def
eager_gpu_strategy_combinations
():
...
...
@@ -52,9 +50,7 @@ def eager_gpu_strategy_combinations():
strategy_combinations
.
one_device_strategy_gpu
,
strategy_combinations
.
mirrored_strategy_with_gpu_and_cpu
,
strategy_combinations
.
mirrored_strategy_with_two_gpus
,
],
mode
=
'eager'
,
)
],)
def
create_fake_data_input_fn
(
batch_size
,
features_shape
,
num_classes
):
...
...
@@ -290,9 +286,7 @@ class ModelTrainingUtilsTest(tf.test.TestCase, parameterized.TestCase):
combinations
.
combine
(
distribution
=
[
strategy_combinations
.
one_device_strategy_gpu
,
],
mode
=
'eager'
,
))
],))
def
test_train_check_artifacts_non_chief
(
self
,
distribution
):
# We shouldn't export artifacts on non-chief workers. Since there's no easy
# way to test with real MultiWorkerMirroredStrategy, we patch the strategy
...
...
official/nlp/nhnet/models_test.py
View file @
10939e58
...
...
@@ -38,9 +38,7 @@ def all_strategy_combinations():
strategy_combinations
.
one_device_strategy_gpu
,
strategy_combinations
.
mirrored_strategy_with_gpu_and_cpu
,
strategy_combinations
.
mirrored_strategy_with_two_gpus
,
],
mode
=
"eager"
,
)
],)
def
distribution_forward_path
(
strategy
,
...
...
official/nlp/nhnet/trainer_test.py
View file @
10939e58
...
...
@@ -39,9 +39,7 @@ def all_strategy_combinations():
strategy_combinations
.
one_device_strategy_gpu
,
strategy_combinations
.
mirrored_strategy_with_gpu_and_cpu
,
strategy_combinations
.
cloud_tpu_strategy
,
],
mode
=
"eager"
,
)
],)
def
get_trivial_data
(
config
)
->
tf
.
data
.
Dataset
:
...
...
official/vision/image_classification/classifier_trainer_test.py
View file @
10939e58
...
...
@@ -54,7 +54,6 @@ def distribution_strategy_combinations() -> Iterable[Tuple[Any, ...]]:
'efficientnet'
,
'resnet'
,
],
mode
=
'eager'
,
dataset
=
[
'imagenet'
,
],
...
...
@@ -151,7 +150,6 @@ class ClassifierTest(tf.test.TestCase, parameterized.TestCase):
'efficientnet'
,
'resnet'
,
],
mode
=
'eager'
,
dataset
=
'imagenet'
,
dtype
=
'float16'
,
))
...
...
@@ -196,7 +194,6 @@ class ClassifierTest(tf.test.TestCase, parameterized.TestCase):
'efficientnet'
,
'resnet'
,
],
mode
=
'eager'
,
dataset
=
'imagenet'
,
dtype
=
'bfloat16'
,
))
...
...
official/vision/image_classification/mnist_test.py
View file @
10939e58
...
...
@@ -38,9 +38,7 @@ def eager_strategy_combinations():
strategy_combinations
.
default_strategy
,
strategy_combinations
.
cloud_tpu_strategy
,
strategy_combinations
.
one_device_strategy_gpu
,
],
mode
=
"eager"
,
)
],)
class
KerasMnistTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
...
...
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