Skip to content

Commit

Permalink
added formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakpiase committed May 25, 2021
1 parent a37ca86 commit be9e734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paddle/fluid/operators/cast_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ class CastOp : public framework::OperatorWithKernel {
int dtype_fp32 = (int)framework::proto::VarType::FP32;
int dtype_bf16 = (int)framework::proto::VarType::BF16;

if ((in_dtype != dtype_fp32 && in_dtype != dtype_bf16) or (out_dtype != dtype_fp32 && out_dtype != dtype_bf16)) return false;
if ((in_dtype != dtype_fp32 && in_dtype != dtype_bf16) or
(out_dtype != dtype_fp32 && out_dtype != dtype_bf16))
return false;

return true;
};
Expand Down

0 comments on commit be9e734

Please sign in to comment.