diff --git a/paddle/fluid/operators/conv_op.h b/paddle/fluid/operators/conv_op.h index 29345f1432e8d6066b03e84c1ef193897e457323..f22ba9079d0d0cd4344ea20f6385690417e9620f 100644 --- a/paddle/fluid/operators/conv_op.h +++ b/paddle/fluid/operators/conv_op.h @@ -29,7 +29,7 @@ limitations under the License. */ namespace paddle { namespace operators { -// Base convolution operator definations for other conv +// Base convolution operator definitions for other conv // like operators to reuse the implementation. inline int ConvOutputSize( int input_size, int filter_size, int dilation, int padding, int stride) { diff --git a/paddle/fluid/operators/jit/README.en.md b/paddle/fluid/operators/jit/README.en.md index 713642c41eec42e1309c594ac8df7bf2e53bb9d3..6e690ebf526b3cae388768f287b3a588fc946485 100644 --- a/paddle/fluid/operators/jit/README.en.md +++ b/paddle/fluid/operators/jit/README.en.md @@ -34,7 +34,7 @@ PaddlePaddle/Paddle/paddle/fluid/ └── ... ``` -All basical definations of jit kernels are addressed in `paddle/fluid/operators/jit` including these three key folders `refer`, `gen`, `more`. There is only one unique name for each kernel while may have seraval implementations with same functionality. +All basical definitions of jit kernels are addressed in `paddle/fluid/operators/jit` including these three key folders `refer`, `gen`, `more`. There is only one unique name for each kernel while may have seraval implementations with same functionality. - `refer`: Each kernel must have one reference implementation on CPU, and it should only focus on the correctness and should not depends on any third-party libraries. - `gen`: The code generated should be kept here. They should be designed focusing on the best performance, which depends on Xbyak. diff --git a/paddle/fluid/pybind/communicator_py.cc b/paddle/fluid/pybind/communicator_py.cc index 37cb589856bcab5c569d3f16e5ecea0bbfbe7f9e..cf280a865c2f8075eb2fa11262a1850a23870fa2 100644 --- a/paddle/fluid/pybind/communicator_py.cc +++ b/paddle/fluid/pybind/communicator_py.cc @@ -101,7 +101,7 @@ void BindCommunicator(py::module* m) { send_ctx, recv_ctx, param_scope, envs); } else { PADDLE_THROW(platform::errors::InvalidArgument( - "unsuported communicator MODE")); + "unsupported communicator MODE")); } return Communicator::GetInstantcePtr(); diff --git a/paddle/fluid/pybind/fleet_py.cc b/paddle/fluid/pybind/fleet_py.cc index e7fda67fb154270cea3a967cddf2488713d82c1d..eb79e18e7aebf02111752f91c2c5cc6e3122979e 100644 --- a/paddle/fluid/pybind/fleet_py.cc +++ b/paddle/fluid/pybind/fleet_py.cc @@ -170,7 +170,7 @@ void BindDistCommunicator(py::module* m) { send_ctx, recv_ctx, dist_desc, host_sign_list, param_scope, envs); } else { PADDLE_THROW(platform::errors::InvalidArgument( - "unsuported communicator MODE")); + "unsupported communicator MODE")); } return Communicator::GetInstantcePtr(); })) diff --git a/paddle/scripts/musl_build/README.md b/paddle/scripts/musl_build/README.md index a1b90b4649b98d6f59c96d8432a5d4a595ab5241..762e122581789ab0f4057a2009fcba878b4224a3 100644 --- a/paddle/scripts/musl_build/README.md +++ b/paddle/scripts/musl_build/README.md @@ -116,6 +116,6 @@ make -j8 - **build_paddle.sh**: paddle building script - **build_inside.sh**: build_paddle.sh will invoke this script inside the docker for compiling. - **config.sh**: build config script for configure compiling option setting. -- **Dockerfile**: build docker defination file. +- **Dockerfile**: build docker definition file. - **package.txt**: build required develop packages for alpine linux. - **REAME.md**: this file. diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 76b99d3eea76498d3ba32dbbf24cac06a19b9579..1bdb604d13bd7d824f5fa5ac7be958c2ecf1144a 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -54,7 +54,7 @@ set(FLUID_CORE_DEPS ${FLUID_CORE}) add_custom_target(copy_libpaddle ALL DEPENDS ${FLUID_CORE_DEPS}) # Standard op(phi op) description is defined in ops.yaml and legacy_ops.yaml. -# When users define composite rules of some nonbasic op, as for defination of args, +# When users define composite rules of some nonbasic op, as for definition of args, # they are supposed to refer to standard op description. However, there exists # some gap of description between current op and standard ones. So special dictionary # is needed to record such gap for execution of composite rules. diff --git a/python/paddle/distributed/fleet/base/role_maker.py b/python/paddle/distributed/fleet/base/role_maker.py index 49b19586a75a65bdb3be8138bf515d6cac6f263c..ae31621287d70031cbad4bffd06ca84616cbcad3 100755 --- a/python/paddle/distributed/fleet/base/role_maker.py +++ b/python/paddle/distributed/fleet/base/role_maker.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Defination of Role Makers.""" +"""Definition of Role Makers.""" import os import time import warnings diff --git a/python/paddle/fluid/device_worker.py b/python/paddle/fluid/device_worker.py index 6836ee8fad070e7aa374e87771beeaca273a52cc..bebf5ebd5eae106a88e931d823a01599acc9fae1 100644 --- a/python/paddle/fluid/device_worker.py +++ b/python/paddle/fluid/device_worker.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Defination of device workers.""" +"""Definition of device workers.""" __all__ = [ 'DeviceWorker', diff --git a/python/paddle/fluid/trainer_desc.py b/python/paddle/fluid/trainer_desc.py index 96204a2399df63b5b6ee53799c06ee04f4dbf0ab..9820f2cca0312c3e096c4e1968f59c3207b91b3f 100644 --- a/python/paddle/fluid/trainer_desc.py +++ b/python/paddle/fluid/trainer_desc.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Defination of trainers.""" +"""Definition of trainers.""" import sys import os diff --git a/python/paddle/fluid/trainer_factory.py b/python/paddle/fluid/trainer_factory.py index 8fa675ffcc7ad64df35d55e87c0918057a10ebb8..e06b48a079af9b0bfeb0a6819983452d760ee52f 100644 --- a/python/paddle/fluid/trainer_factory.py +++ b/python/paddle/fluid/trainer_factory.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Defination of TrainerFactory.""" +"""Definition of TrainerFactory.""" import threading import time @@ -160,7 +160,7 @@ class TrainerFactory: class FetchHandlerMonitor: """ - Defination of FetchHandlerMonitor class, + Definition of FetchHandlerMonitor class, it's for fetch handler. """ diff --git a/python/paddle/incubate/autograd/composite_rules.py b/python/paddle/incubate/autograd/composite_rules.py index 4abcf553712c36ac662e2b36ac6edd7257fec4d6..b72f9f23b3f61f0650900b50f2345412688a4dfc 100644 --- a/python/paddle/incubate/autograd/composite_rules.py +++ b/python/paddle/incubate/autograd/composite_rules.py @@ -115,7 +115,7 @@ def composite_batchnorm( run_mean_ = assign(run_mean) run_var_ = assign(run_var) - # reserve_space is not needed in composite rule, but still ruturn None to keep same as phi op defination. + # reserve_space is not needed in composite rule, but still ruturn None to keep same as phi op definition. reserve_space = None return y, run_mean_, run_var_, batch_mean_, batch_var_, reserve_space diff --git a/python/paddle/incubate/autograd/primx.py b/python/paddle/incubate/autograd/primx.py index d38f49db5be168bee1318fff1c50483346e1c5e1..b89ed24c34acbe388d547d33a36dbb5e6b1099ba 100644 --- a/python/paddle/incubate/autograd/primx.py +++ b/python/paddle/incubate/autograd/primx.py @@ -623,7 +623,7 @@ def _lower_composite(block, blacklist=[]): new_outs, ): if orig_out is None: - # to keep same as phi op defination, orig_out may receive None + # to keep same as phi op definition, orig_out may receive None continue elif new_out is not None: assert orig_out.dtype == new_out.dtype, ( diff --git a/python/paddle/incubate/distributed/fleet/parameter_server/pslib/__init__.py b/python/paddle/incubate/distributed/fleet/parameter_server/pslib/__init__.py index 0c25e958c8265a672b06fc42926c36692d47107b..14752cfcb433de7493ff7309d1663ce11685f328 100644 --- a/python/paddle/incubate/distributed/fleet/parameter_server/pslib/__init__.py +++ b/python/paddle/incubate/distributed/fleet/parameter_server/pslib/__init__.py @@ -10,7 +10,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -"""Defination of PSLib.""" +"""Definition of PSLib.""" import os import sys diff --git a/python/paddle/incubate/distributed/fleet/parameter_server/pslib/node.py b/python/paddle/incubate/distributed/fleet/parameter_server/pslib/node.py index 94df56f4efe2e8715518437ef93edf86bb637157..94b4373f54991d9871c5e9ff3adfc5394c7d1f44 100644 --- a/python/paddle/incubate/distributed/fleet/parameter_server/pslib/node.py +++ b/python/paddle/incubate/distributed/fleet/parameter_server/pslib/node.py @@ -10,7 +10,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -"""Defination of Server and Worker.""" +"""Definition of Server and Worker.""" # NOTE: reduce removed in fuctools in python3 from functools import reduce diff --git a/python/paddle/incubate/distributed/fleet/parameter_server/pslib/optimizer_factory.py b/python/paddle/incubate/distributed/fleet/parameter_server/pslib/optimizer_factory.py index 2a764225321ea6275303556d27bd4b75abc1814e..a444eb43b5a2f8cf5b00f783412f2051e8f3d79e 100644 --- a/python/paddle/incubate/distributed/fleet/parameter_server/pslib/optimizer_factory.py +++ b/python/paddle/incubate/distributed/fleet/parameter_server/pslib/optimizer_factory.py @@ -614,7 +614,7 @@ class DistributedAdam(DistributedOptimizerImplBase): ) idx += 1 - # check config in op defination and fleet config + # check config in op definition and fleet config if FLEET_GLOBAL_DICT["enable"]: one_slot = None strategy["device_worker"] = "Hogwild" diff --git a/python/paddle/incubate/distributed/fleet/role_maker.py b/python/paddle/incubate/distributed/fleet/role_maker.py index 9f276a9ec8be70cd781864caa4221579ff603977..78e2dc35b730b86871ab120223640b07630f3cb4 100644 --- a/python/paddle/incubate/distributed/fleet/role_maker.py +++ b/python/paddle/incubate/distributed/fleet/role_maker.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Defination of Role Makers.""" +"""Definition of Role Makers.""" import os import time diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index de8374d4ce2b4fc25715daf7af4c417cfded8dda..309efc63eb76ff1789c02bac7ed3126034924243 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -596,7 +596,7 @@ def norm(x, p='fro', axis=None, keepdim=False, name=None): return inf_norm(x, porder=p, axis=axis, keepdim=keepdim, name=name) elif p == 0: raise ValueError( - "just suport axis type int or list (length of list <=1) if p = 0, found {}".format( + "just support axis type int or list (length of list <=1) if p = 0, found {}".format( axis ) ) diff --git a/tools/document_preview.sh b/tools/document_preview.sh index 424169bbc512798c66c9422f1f92bf243caaae57..a07fc46155694c0707c6c847b8059e9e8145fa18 100755 --- a/tools/document_preview.sh +++ b/tools/document_preview.sh @@ -47,7 +47,7 @@ function get_docs_pr_num_from_paddle_pr_info(){ # Attention: # 1. /FluidDoc will be used as the workspace of PaddlePaddle/docs. # 2. And /docs is used as the output of doc-build process. -# 3. If conflicted with yours, please modify the defination of FLUIDDOCDIR and +# 3. If conflicted with yours, please modify the definition of FLUIDDOCDIR and # OUTPUTDIR in the subsequent codes. # 4. The doc-build process is controlled under EnvVar BUILD_DOC and UPLOAD_DOC. # All the Chinese and English docs will be generated, and then uploaded.