Skip to content

Commit

Permalink
fix unittest of conv2d due to V100 do not support bfloat16 (#42496)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinxin08 committed May 5, 2022
1 parent e052fde commit 71d3b06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/fluid/tests/unittests/test_conv2d_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def test_check_grad_no_input(self):

def create_test_cudnn_bf16_class(parent):
@unittest.skipIf(
not core.is_compiled_with_cuda() or core.cudnn_version() < 8100,
"core is not compiled with CUDA and cudnn version need larger than 8.1.0"
)
not core.is_compiled_with_cuda() or
not core.is_bfloat16_supported(core.CUDAPlace(0)),
"core is not compiled with CUDA and do not support bfloat16")
class TestConv2DCUDNNBF16(parent):
def get_numeric_grad(self, place, check_name):
scope = core.Scope()
Expand Down

0 comments on commit 71d3b06

Please sign in to comment.