Skip to content

Commit

Permalink
Remove errors related to paddle enforce
Browse files Browse the repository at this point in the history
  • Loading branch information
wozna committed Feb 10, 2021
1 parent 50ff881 commit 4fa62a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion paddle/fluid/operators/mkldnn/conv_transpose_mkldnn_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class ConvTransposeMKLDNNHandlerT
"Got wrong layout = %d for Input tensor.", input->layout()));
PADDLE_ENFORCE_NE(input->format(), MKLDNNMemoryFormat::undef,
platform::errors::InvalidArgument(
"Got wrong format for Input tensor."));
"Got wrong format for Input tensor. The input "
"format is undefined."));

PADDLE_ENFORCE_EQ(
filter->layout(), DataLayout::kMKLDNN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def conv2d_bias_naive(out, bias):
"place does not support BF16 evaluation")
class TestConv2DTransposeBF16MKLDNNOp(OpTest):
def test_check_output(self):
self.check_output(check_dygraph=(self.use_mkldnn == False))
self.check_output_with_place(core.CPUPlace())

def test_check_grad(self):
pass
Expand Down

0 comments on commit 4fa62a2

Please sign in to comment.