"docs/vscode:/vscode.git/clone" did not exist on "18bb216c28e6d92c95f700b6aa71dd67cab3335a"
Commit 10939e58 authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Clean up

PiperOrigin-RevId: 348291651
parent 43ada248
...@@ -34,9 +34,7 @@ def all_strategy_combinations(): ...@@ -34,9 +34,7 @@ def all_strategy_combinations():
strategy_combinations.default_strategy, strategy_combinations.default_strategy,
strategy_combinations.cloud_tpu_strategy, strategy_combinations.cloud_tpu_strategy,
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
], ],)
mode='eager',
)
class TrainerTest(tf.test.TestCase, parameterized.TestCase): class TrainerTest(tf.test.TestCase, parameterized.TestCase):
......
...@@ -68,7 +68,6 @@ class TrainTest(tf.test.TestCase, parameterized.TestCase): ...@@ -68,7 +68,6 @@ class TrainTest(tf.test.TestCase, parameterized.TestCase):
strategy_combinations.cloud_tpu_strategy, strategy_combinations.cloud_tpu_strategy,
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
], ],
mode='eager',
flag_mode=['train', 'eval', 'train_and_eval'], flag_mode=['train', 'eval', 'train_and_eval'],
run_post_eval=[True, False])) run_post_eval=[True, False]))
def test_end_to_end(self, distribution_strategy, flag_mode, run_post_eval): def test_end_to_end(self, distribution_strategy, flag_mode, run_post_eval):
......
...@@ -137,7 +137,6 @@ class TrainTest(tf.test.TestCase, parameterized.TestCase): ...@@ -137,7 +137,6 @@ class TrainTest(tf.test.TestCase, parameterized.TestCase):
strategy_combinations.cloud_tpu_strategy, strategy_combinations.cloud_tpu_strategy,
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
], ],
mode='eager',
flag_mode=['train', 'eval', 'train_and_eval'], flag_mode=['train', 'eval', 'train_and_eval'],
run_post_eval=[True, False])) run_post_eval=[True, False]))
def test_end_to_end(self, distribution_strategy, flag_mode, run_post_eval): def test_end_to_end(self, distribution_strategy, flag_mode, run_post_eval):
......
...@@ -37,9 +37,7 @@ def all_strategy_combinations(): ...@@ -37,9 +37,7 @@ def all_strategy_combinations():
strategy_combinations.default_strategy, strategy_combinations.default_strategy,
strategy_combinations.cloud_tpu_strategy, strategy_combinations.cloud_tpu_strategy,
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
], ],)
mode='eager',
)
def get_exp_config(): def get_exp_config():
......
...@@ -40,9 +40,7 @@ def eager_strategy_combinations(): ...@@ -40,9 +40,7 @@ def eager_strategy_combinations():
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
strategy_combinations.mirrored_strategy_with_gpu_and_cpu, strategy_combinations.mirrored_strategy_with_gpu_and_cpu,
strategy_combinations.mirrored_strategy_with_two_gpus, strategy_combinations.mirrored_strategy_with_two_gpus,
], ],)
mode='eager',
)
def eager_gpu_strategy_combinations(): def eager_gpu_strategy_combinations():
...@@ -52,9 +50,7 @@ def eager_gpu_strategy_combinations(): ...@@ -52,9 +50,7 @@ def eager_gpu_strategy_combinations():
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
strategy_combinations.mirrored_strategy_with_gpu_and_cpu, strategy_combinations.mirrored_strategy_with_gpu_and_cpu,
strategy_combinations.mirrored_strategy_with_two_gpus, strategy_combinations.mirrored_strategy_with_two_gpus,
], ],)
mode='eager',
)
def create_fake_data_input_fn(batch_size, features_shape, num_classes): def create_fake_data_input_fn(batch_size, features_shape, num_classes):
...@@ -290,9 +286,7 @@ class ModelTrainingUtilsTest(tf.test.TestCase, parameterized.TestCase): ...@@ -290,9 +286,7 @@ class ModelTrainingUtilsTest(tf.test.TestCase, parameterized.TestCase):
combinations.combine( combinations.combine(
distribution=[ distribution=[
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
], ],))
mode='eager',
))
def test_train_check_artifacts_non_chief(self, distribution): def test_train_check_artifacts_non_chief(self, distribution):
# We shouldn't export artifacts on non-chief workers. Since there's no easy # We shouldn't export artifacts on non-chief workers. Since there's no easy
# way to test with real MultiWorkerMirroredStrategy, we patch the strategy # way to test with real MultiWorkerMirroredStrategy, we patch the strategy
......
...@@ -38,9 +38,7 @@ def all_strategy_combinations(): ...@@ -38,9 +38,7 @@ def all_strategy_combinations():
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
strategy_combinations.mirrored_strategy_with_gpu_and_cpu, strategy_combinations.mirrored_strategy_with_gpu_and_cpu,
strategy_combinations.mirrored_strategy_with_two_gpus, strategy_combinations.mirrored_strategy_with_two_gpus,
], ],)
mode="eager",
)
def distribution_forward_path(strategy, def distribution_forward_path(strategy,
......
...@@ -39,9 +39,7 @@ def all_strategy_combinations(): ...@@ -39,9 +39,7 @@ def all_strategy_combinations():
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
strategy_combinations.mirrored_strategy_with_gpu_and_cpu, strategy_combinations.mirrored_strategy_with_gpu_and_cpu,
strategy_combinations.cloud_tpu_strategy, strategy_combinations.cloud_tpu_strategy,
], ],)
mode="eager",
)
def get_trivial_data(config) -> tf.data.Dataset: def get_trivial_data(config) -> tf.data.Dataset:
......
...@@ -54,7 +54,6 @@ def distribution_strategy_combinations() -> Iterable[Tuple[Any, ...]]: ...@@ -54,7 +54,6 @@ def distribution_strategy_combinations() -> Iterable[Tuple[Any, ...]]:
'efficientnet', 'efficientnet',
'resnet', 'resnet',
], ],
mode='eager',
dataset=[ dataset=[
'imagenet', 'imagenet',
], ],
...@@ -151,7 +150,6 @@ class ClassifierTest(tf.test.TestCase, parameterized.TestCase): ...@@ -151,7 +150,6 @@ class ClassifierTest(tf.test.TestCase, parameterized.TestCase):
'efficientnet', 'efficientnet',
'resnet', 'resnet',
], ],
mode='eager',
dataset='imagenet', dataset='imagenet',
dtype='float16', dtype='float16',
)) ))
...@@ -196,7 +194,6 @@ class ClassifierTest(tf.test.TestCase, parameterized.TestCase): ...@@ -196,7 +194,6 @@ class ClassifierTest(tf.test.TestCase, parameterized.TestCase):
'efficientnet', 'efficientnet',
'resnet', 'resnet',
], ],
mode='eager',
dataset='imagenet', dataset='imagenet',
dtype='bfloat16', dtype='bfloat16',
)) ))
......
...@@ -38,9 +38,7 @@ def eager_strategy_combinations(): ...@@ -38,9 +38,7 @@ def eager_strategy_combinations():
strategy_combinations.default_strategy, strategy_combinations.default_strategy,
strategy_combinations.cloud_tpu_strategy, strategy_combinations.cloud_tpu_strategy,
strategy_combinations.one_device_strategy_gpu, strategy_combinations.one_device_strategy_gpu,
], ],)
mode="eager",
)
class KerasMnistTest(tf.test.TestCase, parameterized.TestCase): class KerasMnistTest(tf.test.TestCase, parameterized.TestCase):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment