Skip to content

Commit

Permalink
Disable elementwise_sub_mkldnn test on GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrekobi committed Sep 21, 2021
1 parent 557ff38 commit 314f214
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,20 @@
import numpy as np
from paddle.fluid.tests.unittests.test_elementwise_sub_op import TestElementwiseSubOp
from paddle import enable_static
from paddle.fluid.tests.unittests.op_test import OpTestTool
from paddle.fluid.framework import _current_expected_place
import paddle.fluid.core as core


@OpTestTool.skip_if(not (isinstance(_current_expected_place(), core.CPUPlace)),
"GPU is not supported")
class TestMKLDNNElementwiseSubOp(TestElementwiseSubOp):
def init_kernel_type(self):
self.use_mkldnn = True

def init_dtype(self):
self.dtype = np.float32

# # TODO(piotrekobiIntel): Enable when grad is ready
# def test_check_grad_normal(self):
# pass

# def test_check_grad_ingore_x(self):
# pass

# def test_check_grad_ingore_y(self):
# pass


class TestMKLDNNElementwiseSubOp2(TestMKLDNNElementwiseSubOp):
def init_input_output(self):
Expand Down

0 comments on commit 314f214

Please sign in to comment.