Skip to content

Commit 0c2aaa0

Browse files
authored
[CodeStyle][Typos][B-13,B-15,B-16]] Fix typos (brach, buffert, builer) (#69605)
* typos B-13、B-15 * typos[B-13、B-15、B-16] * typos [B-13、B-15、B-16]
1 parent 43d1e63 commit 0c2aaa0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

_typos.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ arange = "arange"
1717
ot = 'ot'
1818
pash = 'pash'
1919
eles = 'eles'
20+
builer = 'builer'
2021

2122
# These words need to be fixed
2223
ontext = 'ontext'
@@ -39,7 +40,6 @@ Unsupport = 'Unsupport'
3940
inferrence = 'inferrence'
4041
PROTOCAL = 'PROTOCAL'
4142
represention = 'represention'
42-
brach = 'brach'
4343
registe = 'registe'
4444
consequtive = 'consequtive'
4545
homogenous = 'homogenous'
@@ -284,7 +284,6 @@ transfering = 'transfering'
284284
enfore = 'enfore'
285285
elments = 'elments'
286286
convience = 'convience'
287-
builer = 'builer'
288287
Splited = 'Splited'
289288
indiates = 'indiates'
290289
availiable = 'availiable'
@@ -379,7 +378,6 @@ epslion = 'epslion'
379378
somme = 'somme'
380379
cacl = 'cacl'
381380
worke = 'worke'
382-
buffert = 'buffert'
383381
reduntant = 'reduntant'
384382
UNEXPECT = 'UNEXPECT'
385383
shedule = 'shedule'

paddle/fluid/operators/tensorrt/tensorrt_engine_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ class TensorRTEngineOp : public framework::OperatorBase {
10531053
model_opt_cache_dir_, engine_key_);
10541054
trt_engine_->Deserialize(trt_engine_serialized_data);
10551055
} else {
1056-
// This brach mainly used to ut.
1056+
// This branch mainly used to ut.
10571057
PrepareTRTEngine(scope, trt_engine_);
10581058
}
10591059
}

test/legacy_test/test_egr_python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def test_share_buffer_to(self):
722722
np.testing.assert_array_equal(tensor3.numpy(), arr2)
723723
self.assertTrue(tensor3._is_shared_buffer_with(tensor))
724724

725-
def test_0_size_tensor_share_buffert_to(self):
725+
def test_0_size_tensor_share_buffer_to(self):
726726
x = paddle.rand([0, 4])
727727
y = paddle.rand([0, 4])
728728
x._share_buffer_to(y)

0 commit comments

Comments
 (0)