Skip to content

Commit 93215a3

Browse files
committed
Fix an English writing typo.
1 parent fc1b1d5 commit 93215a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/operators/math/sequence2batch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class LoDTensor2BatchFunctor {
6969
"sequence information.");
7070
PADDLE_ENFORCE_EQ(
7171
lods[1].size(), static_cast<size_t>(lod_tensor.dims()[0]),
72-
"The LoD information should be consistant with the dims.");
72+
"The LoD information should be consistent with the dims.");
7373
CopyMatrixRowsFunctor<DeviceContext, T> to_batch;
7474
to_batch(context, lod_tensor, lods[1], batch, true);
7575
return;
@@ -166,7 +166,7 @@ class Batch2LoDTensorFunctor {
166166
"sequence information.");
167167
PADDLE_ENFORCE_EQ(
168168
in_lod[1].size(), static_cast<size_t>(lod_tensor->dims()[0]),
169-
"The LoD information should be consistant with the dims.");
169+
"The LoD information should be consistent with the dims.");
170170
CopyMatrixRowsFunctor<DeviceContext, T> to_seq;
171171
to_seq(context, batch, in_lod[1], lod_tensor, false);
172172
}

0 commit comments

Comments
 (0)