Get all the valid tests configs to run. Returns: all the valid test configs as tuples of data_format and use_gpu.
()
| 149 | |
| 150 | |
| 151 | def GetTestConfigs(): |
| 152 | """Get all the valid tests configs to run. |
| 153 | |
| 154 | Returns: |
| 155 | all the valid test configs as tuples of data_format and use_gpu. |
| 156 | """ |
| 157 | test_configs = [("NHWC", False), ("NHWC", True)] |
| 158 | if test.is_gpu_available(cuda_only=True): |
| 159 | # "NCHW" format is only supported on CUDA. |
| 160 | test_configs += [("NCHW", True)] |
| 161 | return test_configs |
| 162 | |
| 163 | |
| 164 | class Conv2DTest(test.TestCase): |
no outgoing calls
no test coverage detected