Skip to content

Commit

Permalink
added skipping tests for GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
jakpiase committed Sep 23, 2021
1 parent a685a60 commit d629217
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

import unittest
import numpy as np
from paddle.fluid.tests.unittests.op_test import OpTest
from paddle.fluid.tests.unittests.op_test import OpTest, OpTestTool
import paddle
from paddle.fluid import core
from paddle.fluid.op import Operator


@OpTestTool.skip_if_not_cpu_bf16()
class TestShapeOneDNNOp(OpTest):
def setUp(self):
self.op_type = "shape"
Expand All @@ -35,7 +36,7 @@ def config(self):
self.dtype = np.float32

def test_check_output(self):
self.check_output()
self.check_output_with_place(core.CPUPlace())


class TestShape1DOneDNNOp(TestShapeOneDNNOp):
Expand Down

0 comments on commit d629217

Please sign in to comment.