Add 'test_util.IsMklEnabled()' to guard tests to only mkl.
This commit is contained in:
parent
b47c1aafac
commit
b1fca4d98c
@ -32,6 +32,7 @@ from tensorflow.python.ops import gradients_impl
|
||||
from tensorflow.python.ops import nn_ops
|
||||
import tensorflow.python.ops.nn_grad # pylint: disable=unused-import
|
||||
from tensorflow.python.platform import test
|
||||
from tensorflow.python.framework import test_util
|
||||
|
||||
|
||||
def GetTestConfigs():
|
||||
@ -220,6 +221,7 @@ class Conv3DTest(test.TestCase):
|
||||
expected=expected_output)
|
||||
|
||||
def testConv3D1x1x1Filter2x1x1Dilation(self):
|
||||
if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
|
||||
self._VerifyDilatedConvValues(
|
||||
tensor_in_sizes=[1, 3, 6, 1, 1],
|
||||
filter_in_sizes=[1, 1, 1, 1, 1],
|
||||
@ -244,6 +246,7 @@ class Conv3DTest(test.TestCase):
|
||||
expected=expected_output)
|
||||
|
||||
def testConv3D2x2x2Filter1x2x1Dilation(self):
|
||||
if test.is_gpu_available(cuda_only=True) or test_util.IsMklEnabled():
|
||||
self._VerifyDilatedConvValues(
|
||||
tensor_in_sizes=[1, 4, 6, 3, 1],
|
||||
filter_in_sizes=[2, 2, 2, 1, 1],
|
||||
|
Loading…
Reference in New Issue
Block a user