Skip to content

Commit 866abcf

Browse files
authored
[CodeStyle][Typos] Bump typos version to v1.34.0 (#74136)
1 parent 8707080 commit 866abcf

File tree

11 files changed

+21
-20
lines changed

11 files changed

+21
-20
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ repos:
5050
paddle/cinn/utils/registry.h
5151
)$
5252
- repo: https://github.com/PFCCLab/typos-pre-commit-mirror.git
53-
rev: v1.33.1
53+
rev: v1.34.0
5454
hooks:
5555
- id: typos
5656
args: [--force-exclude]

_typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ operants = 'operants'
4444
Optin = 'Optin'
4545
padd = 'padd'
4646
pash = 'pash'
47+
setp = 'setp'
4748
splited = 'splited'
4849
splitted = 'splitted'
4950
statis = 'statis'

paddle/fluid/inference/tensorrt/convert/elementwise_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class ElementwiseTensorOpConverter : public OpConverter {
8080
reshape_layer->setInput(1, *new_y_shape_tensor);
8181
reshape_y_tensor = reshape_layer->getOutput(0);
8282
} else {
83-
// In fact , we can remove this `else`, but -> rt_resnet50_test CI in trt
84-
// 6015 faling, how ridiculous!
83+
// In fact, we can remove this `else`, but -> rt_resnet50_test CI in trt
84+
// 6015 failing, how ridiculous!
8585
reshape_y_tensor = Y;
8686
}
8787

paddle/fluid/pir/serialize_deserialize/include/interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void IR_API WriteModule(const pir::Program& program,
5151
* @param[in] file_path The path to the file from which the PIR program
5252
* should be read.
5353
* @param[out] program A pointer to the PIR program object where the
54-
* deserilize program will be stored.
54+
* deserialize program will be stored.
5555
* @param[in] pir_version The current version of the PIR program format.
5656
*
5757
* @return bool. The function modifies the 'program' object to contain the data

paddle/phi/infermeta/unary.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4811,7 +4811,7 @@ void SplitWithNumInferMeta(const MetaTensor& x,
48114811
for (int i = 0; i < num; ++i) {
48124812
sections_vec.push_back(input_axis_dim / num);
48134813
}
4814-
// setp2: fill out dims
4814+
// step2: fill out dims
48154815
FillSplitOutDims(x, axis_value, sections_vec, &out);
48164816
}
48174817
}

paddle/phi/kernels/funcs/elementwise_functor.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ struct RemainderFunctor {
703703
PADDLE_ENFORCE(b != 0, DIV_ERROR_INFO);
704704
T res = a % b;
705705

706-
// According to #PR26732: in dividen % divsor
707-
// remainder shall have the same sign as divsor.
706+
// According to #PR26732: in dividend % divisor
707+
// remainder shall have the same sign as divisor.
708708
if ((res != 0) && ((b ^ res) < 0)) res += b;
709709
return res;
710710
}
@@ -717,8 +717,8 @@ struct RemainderFunctor<
717717
inline HOSTDEVICE T operator()(const T a, const T b) const {
718718
T res = fmod(a, b);
719719

720-
// According to #PR26732: in dividen % divsor
721-
// remainder shall have the same sign as divsor.
720+
// According to #PR26732: in dividend % divisor
721+
// remainder shall have the same sign as divisor.
722722
if ((res != 0) && ((res < 0) != (b < 0))) res += b;
723723
return res;
724724
}
@@ -730,8 +730,8 @@ struct RemainderFunctor<dtype::float16> {
730730
const dtype::float16 b) const {
731731
float b_float = static_cast<float>(b);
732732
float res = fmod(static_cast<float>(a), b_float);
733-
// According to #PR26732: in dividen % divsor
734-
// remainder shall have the same sign as divsor.
733+
// According to #PR26732: in dividend % divisor
734+
// remainder shall have the same sign as divisor.
735735
if ((res != 0.0f) && ((res < 0.0f) != (b_float < 0.0f))) res += b_float;
736736
return static_cast<dtype::float16>(res);
737737
}
@@ -744,8 +744,8 @@ struct RemainderFunctor<dtype::bfloat16> {
744744
float b_float = static_cast<float>(b);
745745
float res = fmod(static_cast<float>(a), b_float);
746746

747-
// According to #PR26732: in dividen % divsor
748-
// remainder shall have the same sign as divsor.
747+
// According to #PR26732: in dividend % divisor
748+
// remainder shall have the same sign as divisor.
749749
if ((res != 0.0f) && ((res < 0.0f) != (b_float < 0.0f))) res += b_float;
750750
return static_cast<dtype::bfloat16>(res);
751751
}

paddle/phi/kernels/funcs/top_k_function_cuda.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ __device__ __forceinline__ void BlockReduce(Pair<T> shared_max[],
404404
* In a block:
405405
* 1. every thread get top MaxLength value;
406406
* 2. merge to sh_topk, block reduce and get max value;
407-
* 3. go to the second setp, until one thread's topk value is null;
408-
* 4. go to the first setp, until get the topk value.
407+
* 3. go to the second step, until one thread's topk value is null;
408+
* 4. go to the first step, until get the topk value.
409409
*/
410410

411411
template <typename T, int MaxLength, int BlockSize>

paddle/phi/kernels/sparse/cpu/slice_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void SliceCsrCompute(const Context& dev_ctx,
270270
funcs::ConstructNewSliceAttrs(
271271
x_dims, axes, starts, ends, &new_axes, &new_starts, &new_ends);
272272

273-
// Setp3: Slice csr tensor according to its dimension
273+
// Step3: Slice csr tensor according to its dimension
274274
if (x_dims.size() == 2) {
275275
SliceCsrTensor2D<T, Context>(
276276
dev_ctx, x, new_axes, new_starts, new_ends, out_dims, out);

paddle/phi/kernels/sparse/gpu/slice_kernel.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ void SliceCsrCompute(const Context& dev_ctx,
604604
funcs::ConstructNewSliceAttrs(
605605
x_dims, axes, starts, ends, &new_axes, &new_starts, &new_ends);
606606

607-
// Setp3: Slice csr tensor according to its dimension
607+
// Step3: Slice csr tensor according to its dimension
608608
if (x_dims.size() == 2) {
609609
SliceCsrTensor2D<T, Context>(
610610
dev_ctx, x, new_axes, new_starts, new_ends, out_dims, out);

test/cpp/pir/core/program_translator_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ TEST(OperatorDialectTest, StartupProgram) {
163163

164164
size_t op_size = program->block()->size();
165165
// ops.size() = op size in BlockDesc + parameter_op +
166-
// consant_op_for_uniform
167-
// + consant_op for gaussian
166+
// constant_op_for_uniform
167+
// + constant_op for gaussian
168168
EXPECT_EQ(op_size, p.Block(0).OpSize() + program->parameters_num() + 3 + 53);
169169

170170
std::stringstream ss;

0 commit comments

Comments
 (0)