diff --git a/_typos.toml b/_typos.toml index fd386eea38a301..a36d1d049e4327 100644 --- a/_typos.toml +++ b/_typos.toml @@ -220,14 +220,6 @@ leyer = 'leyer' learing = 'learing' Leafs = 'Leafs' leafs = 'leafs' -levle = 'levle' -linke = 'linke' -lsit = 'lsit' -lits = 'lits' -localy = 'localy' -Localy = 'Localy' -logarithmical = 'logarithmical' -Loggin = 'Loggin' occured = 'occured' Ocurred = 'Ocurred' occures = 'occures' diff --git a/paddle/cinn/hlir/dialect/operator/transforms/pir_to_py_code_converter.cc b/paddle/cinn/hlir/dialect/operator/transforms/pir_to_py_code_converter.cc index d234f8dd78e32b..855f2943f268ba 100644 --- a/paddle/cinn/hlir/dialect/operator/transforms/pir_to_py_code_converter.cc +++ b/paddle/cinn/hlir/dialect/operator/transforms/pir_to_py_code_converter.cc @@ -1550,7 +1550,7 @@ std::optional GetNullShapeAnalysis( return std::nullopt; } -void TryTruncateLogginFile(const std::string& file_path) { +void TryTruncateLoggingFile(const std::string& file_path) { if (!FLAGS_logging_trunc_pir_py_code) return; static std::mutex mutex; std::unique_lock lock(mutex); @@ -1570,7 +1570,7 @@ void PirToPyCodeConverter::SaveIfFlagEnabled() const { if (FLAGS_logging_pir_py_code_dir.empty()) return; const std::string file_path = FLAGS_logging_pir_py_code_dir + "/" + file_name_; - TryTruncateLogginFile(file_path); + TryTruncateLoggingFile(file_path); const auto MutOnceFlag = [&]() -> std::once_flag* { static std::mutex mutex; std::unique_lock lock(mutex); diff --git a/paddle/fluid/operators/logspace_op.cc b/paddle/fluid/operators/logspace_op.cc index 4088f4ba0f2917..e92523a5e3364f 100644 --- a/paddle/fluid/operators/logspace_op.cc +++ b/paddle/fluid/operators/logspace_op.cc @@ -53,7 +53,7 @@ class LogspaceOpMaker : public framework::OpProtoAndCheckerMaker { AddAttr("dtype", "The output data type."); AddOutput("Out", "A sequence of numbers."); AddComment(R"DOC( - Return fixed number of logarithmical-evenly spaced values within a given + Return fixed number of logarithmically-evenly spaced values within a given interval. First entry is exponential of Start with base Base, and last entry is exponential of Stop with base Base. In the case when Num is 1, only exponential of Start with base Base is returned. If dtype is int32 diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index d28ac0445250a3..acfbbb19b42105 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -201,7 +201,7 @@ if "%WITH_SCCACHE%"=="ON" ( sccache --stop-server 2> NUL del %SCCACHE_ROOT%\sccache_log.txt - :: Localy storage on windows + :: Locally storage on windows if not exist %SCCACHE_ROOT% mkdir %SCCACHE_ROOT% set SCCACHE_DIR=%SCCACHE_ROOT%\.cache diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 629ab1fcada0bb..3b07c3b7bc0ae4 100644 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1162,7 +1162,7 @@ function generate_upstream_develop_api_spec() { echo "wget develop whl from bos! " mkdir -p ${PADDLE_ROOT}/build/python/dist && wget -q -P ${PADDLE_ROOT}/build/python/dist ${dev_url} else - echo "compile develop whl localy! " + echo "compile develop whl locally! " if [[ ${cmake_change} ]];then rm -rf ${PADDLE_ROOT}/build/third_party fi diff --git a/python/paddle/distributed/auto_parallel/static/cluster.py b/python/paddle/distributed/auto_parallel/static/cluster.py index 1d20331d993bb7..fabf98e294786a 100644 --- a/python/paddle/distributed/auto_parallel/static/cluster.py +++ b/python/paddle/distributed/auto_parallel/static/cluster.py @@ -287,7 +287,7 @@ def __init__(self, source, target, topo=False): self._bandwidth = None # latency is stored by millisecond self._latency = None - # linke between mesh, machine, device + # linked between mesh, machine, device self._link_level = None self._hop = None self._topo = topo diff --git a/python/paddle/jit/dy2static/convert_operators.py b/python/paddle/jit/dy2static/convert_operators.py index 9b18b3b4bf42c3..b540f22db0c020 100644 --- a/python/paddle/jit/dy2static/convert_operators.py +++ b/python/paddle/jit/dy2static/convert_operators.py @@ -725,7 +725,7 @@ def has_negative(list_shape): # (1) if x.shape contains -1, such as [2, -1, 64], returns [2, var, 64], # where var = paddle.shape(x)[1] - # (2) if x.shape does not contains -1, return lsit(x.shape) directly + # (2) if x.shape does not contains -1, return list(x.shape) directly if isinstance(x, (Variable, Value)): values = list(x.shape) diff --git a/python/paddle/tensor/creation.py b/python/paddle/tensor/creation.py index ed84668d1d414b..2f8567fb0e14d5 100644 --- a/python/paddle/tensor/creation.py +++ b/python/paddle/tensor/creation.py @@ -499,7 +499,7 @@ def logspace( name: str | None = None, ) -> paddle.Tensor: r""" - Return fixed number of logarithmical-evenly spaced values within the interval \ + Return fixed number of logarithmically-evenly spaced values within the interval \ :math:`[base^{start}, base^{stop}]`. Notes: @@ -523,7 +523,7 @@ def logspace( Returns: Tensor: The output data type will be float32, float64. The 1-D tensor with \ - fixed number of logarithmical-evenly spaced values, the data shape of this \ + fixed number of logarithmically-evenly spaced values, the data shape of this \ tensor is :math:`[num]`. If the :attr:`num` is set 1, the output tensor \ just has the value with exponential of :attr:`start` with base :attr:`base`. diff --git a/test/cpp/fluid/beam_search_decode_op_test.cc b/test/cpp/fluid/beam_search_decode_op_test.cc index 2927edafc96f8d..c0980e4e64dd3f 100644 --- a/test/cpp/fluid/beam_search_decode_op_test.cc +++ b/test/cpp/fluid/beam_search_decode_op_test.cc @@ -40,7 +40,7 @@ void GenerateExample(const std::vector& level_0, level_1.size() - 1, common::errors::InvalidArgument( "source level is used to describe candidate set" - ", so it's element should less than levle_1 length. " + ", so it's element should less than level_1 length. " "And the value of source" "level is %d. ", level_1.size() - 1)); diff --git a/test/dygraph_to_static/test_declarative.py b/test/dygraph_to_static/test_declarative.py index b8c07d9f2dde45..f8d66a84a1bea2 100644 --- a/test/dygraph_to_static/test_declarative.py +++ b/test/dygraph_to_static/test_declarative.py @@ -163,7 +163,7 @@ def test_with_input_spec(self): # 6. test input with dict out = net.func_with_dict({'x': x, 'y': y}) - # 7. test input with lits contains dict + # 7. test input with list contains dict int_np = np.ones([1]).astype('float32') out = net.func_with_list_dict([int_np, {'x': x, 'y': y}]) diff --git a/test/xpu/cpp/beam_search_decode_op_xpu_test.cc b/test/xpu/cpp/beam_search_decode_op_xpu_test.cc index 219b5be5d720f4..3fa46ed26b5c4f 100644 --- a/test/xpu/cpp/beam_search_decode_op_xpu_test.cc +++ b/test/xpu/cpp/beam_search_decode_op_xpu_test.cc @@ -43,7 +43,7 @@ void GenerateXPUExample(const std::vector& level_0, level_1.size() - 1, common::errors::InvalidArgument( "source level is used to describe candidate set" - ", so it's element should less than levle_1 length. " + ", so it's element should less than level_1 length. " "And the value of source" "level is %d. ", level_1.size() - 1));