From 7bcee8e453c395a32ed30aa07baa6cdef138df37 Mon Sep 17 00:00:00 2001 From: jakpiase <62569058+jakpiase@users.noreply.github.com> Date: Tue, 25 May 2021 15:56:55 +0200 Subject: [PATCH] minor change --- paddle/fluid/operators/cast_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/cast_op.cc b/paddle/fluid/operators/cast_op.cc index 171478e6ae867..952e9ca329f10 100644 --- a/paddle/fluid/operators/cast_op.cc +++ b/paddle/fluid/operators/cast_op.cc @@ -90,7 +90,7 @@ class CastOp : public framework::OperatorWithKernel { int dtype_fp32 = static_cast(framework::proto::VarType::FP32); int dtype_bf16 = static_cast(framework::proto::VarType::BF16); - if ((in_dtype != dtype_fp32 && in_dtype != dtype_bf16) or + if ((in_dtype != dtype_fp32 && in_dtype != dtype_bf16) || (out_dtype != dtype_fp32 && out_dtype != dtype_bf16)) return false;