Home
last modified time | relevance | path

Searched refs:is_gpu_available (Results 1 – 25 of 128) sorted by relevance

123456

/external/tensorflow/tensorflow/python/grappler/
Dlayout_optimizer_test.py280 if test.is_gpu_available(cuda_only=True):
310 if test.is_gpu_available(cuda_only=True):
346 if test.is_gpu_available(cuda_only=True):
381 if test.is_gpu_available(cuda_only=True):
416 if test.is_gpu_available(cuda_only=True):
446 if test.is_gpu_available(cuda_only=True):
477 if test.is_gpu_available(cuda_only=True):
508 if test.is_gpu_available(cuda_only=True):
539 if test.is_gpu_available(cuda_only=True):
570 if test.is_gpu_available(cuda_only=True):
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dpool_test.py158 with self.session(use_gpu=test.is_gpu_available()):
170 with self.session(use_gpu=test.is_gpu_available()):
196 with self.session(use_gpu=test.is_gpu_available()):
222 with self.session(use_gpu=test.is_gpu_available()):
249 if test.is_gpu_available(cuda_only=True):
309 with self.session(use_gpu=test.is_gpu_available()):
336 with self.session(use_gpu=test.is_gpu_available()):
363 with self.session(use_gpu=test.is_gpu_available()):
Dconv2d_backprop_filter_grad_test.py71 err_tolerance = 3e-2 if test.is_gpu_available() else 2e-3
79 if test.is_gpu_available(cuda_only=True):
Dconv_ops_test.py158 if test.is_gpu_available(cuda_only=True):
334 if gpu_only and not test.is_gpu_available(cuda_only=True):
910 if use_gpu and not test.is_gpu_available(cuda_only=True):
1379 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
1394 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
1409 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
1424 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
1439 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
1454 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
1469 if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
[all …]
Drelu_op_test.py70 if not test.is_gpu_available():
77 if not test.is_gpu_available(cuda_only=True):
87 if not test.is_gpu_available(cuda_only=True):
236 if not test.is_gpu_available():
300 if not test.is_gpu_available():
424 if not test.is_gpu_available():
612 if not test.is_gpu_available():
Dpooling_ops_test.py46 if use_gpu and test.is_gpu_available():
65 if test.is_gpu_available(cuda_only=True):
69 if not test.is_gpu_available(cuda_only=True):
76 if test.is_gpu_available(
908 if test.is_gpu_available():
1072 if not test.is_gpu_available(cuda_only=True):
1797 if not test.is_gpu_available():
1884 if not test.is_gpu_available():
2262 with self.session(use_gpu=test.is_gpu_available()) as sess:
2264 if test.is_gpu_available():
[all …]
Dconv1d_test.py46 with self.cached_session(use_gpu=test.is_gpu_available()):
71 with self.cached_session(use_gpu=test.is_gpu_available()):
Dconv1d_transpose_test.py155 if test.is_gpu_available(cuda_only=True):
186 if test.is_gpu_available(cuda_only=True):
218 if test.is_gpu_available(cuda_only=True):
Ddepthtospace_op_test.py58 if test.is_gpu_available():
128 if test.is_gpu_available():
317 if not test.is_gpu_available():
342 if data_format == "NCHW" and not test.is_gpu_available():
Ddepthwise_conv_op_test.py426 if not test.is_gpu_available():
439 if not test.is_gpu_available():
471 data_formats = ["NHWC", "NCHW"] if test.is_gpu_available() else ["NHWC"]
739 if not test.is_gpu_available():
775 data_formats = ["NHWC", "NCHW"] if test.is_gpu_available() else ["NHWC"]
849 if not test.is_gpu_available():
885 data_formats = ["NHWC", "NCHW"] if test.is_gpu_available() else ["NHWC"]
Dspacetodepth_op_test.py45 if test_util.is_gpu_available():
145 if test.is_gpu_available():
322 if not test.is_gpu_available():
342 if data_format == "NCHW" and not test.is_gpu_available():
Dctc_loss_op_test.py362 with ops.device("/GPU:0" if test.is_gpu_available() else "/CPU:0"):
592 with ops.device("/GPU:0" if test.is_gpu_available() else "/CPU:0"):
874 with ops.device("/GPU:0" if test.is_gpu_available() else "/CPU:0"):
917 with ops.device("/GPU:0" if test.is_gpu_available() else "/CPU:0"):
930 with ops.device("/GPU:0" if test.is_gpu_available() else "/CPU:0"):
969 if not test.is_gpu_available():
1010 if not test.is_gpu_available():
Dsoftmax_op_test.py142 if test.is_gpu_available(cuda_only=True):
157 if test.is_gpu_available(cuda_only=True):
173 if test.is_gpu_available(cuda_only=True):
Dlrn_op_test.py101 if not test.is_gpu_available():
158 if not test.is_gpu_available():
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dcopy_to_device_test.py259 if not test_util.is_gpu_available():
271 if not test_util.is_gpu_available():
283 if not test_util.is_gpu_available():
321 if not test_util.is_gpu_available():
341 if not test_util.is_gpu_available():
361 if not test_util.is_gpu_available():
381 if not test_util.is_gpu_available():
401 if not test_util.is_gpu_available():
482 if not test_util.is_gpu_available():
506 if not test_util.is_gpu_available():
[all …]
Dprefetch_to_device_test.py144 if not test_util.is_gpu_available():
156 if not test_util.is_gpu_available():
194 if not test_util.is_gpu_available():
217 if not test_util.is_gpu_available():
/external/tensorflow/tensorflow/python/keras/layers/
Dconvolutional_transpose_test.py57 if 'data_format' not in kwargs or test.is_gpu_available(cuda_only=True):
149 if 'data_format' not in kwargs or test.is_gpu_available(cuda_only=True):
200 if test.is_gpu_available(cuda_only=True):
Dconvolutional_test.py101 if not requires_gpu or test.is_gpu_available(cuda_only=True):
260 if not requires_gpu or test.is_gpu_available(cuda_only=True):
375 if not requires_gpu or test.is_gpu_available(cuda_only=True):
429 if test.is_gpu_available(cuda_only=True):
461 if test.is_gpu_available(cuda_only=True):
479 if test.is_gpu_available(cuda_only=True):
522 test.is_gpu_available(cuda_only=True)):
555 if 'data_format' not in kwargs or test.is_gpu_available(cuda_only=True):
1175 if 'data_format' not in kwargs or test.is_gpu_available(cuda_only=True):
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dmulti_device_iterator_test.py247 if not test_util.is_gpu_available():
268 if not test_util.is_gpu_available():
291 if not test_util.is_gpu_available() or context.executing_eagerly():
362 if not test_util.is_gpu_available():
378 if not test_util.is_gpu_available():
401 if not test_util.is_gpu_available():
440 if not test_util.is_gpu_available():
455 if not test_util.is_gpu_available():
Dplacement_test.py156 if not test_util.is_gpu_available():
173 if not test_util.is_gpu_available():
207 if not test_util.is_gpu_available():
238 if not test_util.is_gpu_available():
Doptional_test.py179 if test_util.is_gpu_available():
203 if test_util.is_gpu_available():
224 if test_util.is_gpu_available():
244 if test_util.is_gpu_available():
259 if not test_util.is_gpu_available():
289 if not test_util.is_gpu_available():
367 if not gpu_compatible and test.is_gpu_available():
/external/tensorflow/tensorflow/python/profiler/internal/
Drun_metadata_test.py120 if not test.is_gpu_available(cuda_only=True):
139 if not test.is_gpu_available(cuda_only=True):
225 if not test.is_gpu_available():
/external/tensorflow/tensorflow/python/eager/benchmarks/resnet50/
Dresnet50_graph_test.py30 return 'channels_first' if tf.test.is_gpu_available() else 'channels_last'
73 dev = 'gpu' if tf.test.is_gpu_available() else 'cpu'
/external/tensorflow/tensorflow/python/client/
Ddevice_lib_test.py40 if test.is_gpu_available():
/external/tensorflow/tensorflow/python/ops/
Dnccl_ops_test.py101 if not test.is_gpu_available():
180 if test.is_gpu_available():

123456