Skip to content

Commit ef77944

Browse files
committed
fix format & typo
1 parent 691654f commit ef77944

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paddle/fluid/pir/transforms/onednn/cpu_bfloat16_squash_pass.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ class CastBf16SquashPattern : public pir::OpRewritePattern<OpType> {
443443
cast_attributes["dtype"] = new_dtype;
444444
}
445445
if (with_q) {
446-
new_cast = rewriter.Build<OpType>(pre_op->operand_source(0), cast_attributes);
446+
new_cast =
447+
rewriter.Build<OpType>(pre_op->operand_source(0), cast_attributes);
447448
if (with_dq) {
448449
rewriter.ReplaceAllUsesWith(next_op->result(0), new_cast->result(0));
449450
rewriter.EraseOp(next_op);

paddle/phi/kernels/onednn/cast_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void CastKernel(const Context& dev_ctx,
3535
DataType out_dtype,
3636
DenseTensor* out) {
3737
// Should keep eye on it, since it may hide some issue action like meaningless
38-
// cast (intented to transfer but due to some reason appear to be cast between
38+
// cast (intended to transfer but due to some reason appear to be cast between
3939
// same dtype)
4040
if (x.dtype() == out_dtype) {
4141
if (!out->IsSharedWith(x)) {

0 commit comments

Comments
 (0)