未验证 提交 5d8fe822 编写于 作者: I iLeGend 提交者: GitHub

Fix some typos (#50914)

上级 eb22391c
...@@ -29,7 +29,7 @@ limitations under the License. */ ...@@ -29,7 +29,7 @@ limitations under the License. */
namespace paddle { namespace paddle {
namespace operators { namespace operators {
// Base convolution operator definations for other conv // Base convolution operator definitions for other conv
// like operators to reuse the implementation. // like operators to reuse the implementation.
inline int ConvOutputSize( inline int ConvOutputSize(
int input_size, int filter_size, int dilation, int padding, int stride) { int input_size, int filter_size, int dilation, int padding, int stride) {
......
...@@ -34,7 +34,7 @@ PaddlePaddle/Paddle/paddle/fluid/ ...@@ -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. - `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. - `gen`: The code generated should be kept here. They should be designed focusing on the best performance, which depends on Xbyak.
......
...@@ -101,7 +101,7 @@ void BindCommunicator(py::module* m) { ...@@ -101,7 +101,7 @@ void BindCommunicator(py::module* m) {
send_ctx, recv_ctx, param_scope, envs); send_ctx, recv_ctx, param_scope, envs);
} else { } else {
PADDLE_THROW(platform::errors::InvalidArgument( PADDLE_THROW(platform::errors::InvalidArgument(
"unsuported communicator MODE")); "unsupported communicator MODE"));
} }
return Communicator::GetInstantcePtr(); return Communicator::GetInstantcePtr();
......
...@@ -170,7 +170,7 @@ void BindDistCommunicator(py::module* m) { ...@@ -170,7 +170,7 @@ void BindDistCommunicator(py::module* m) {
send_ctx, recv_ctx, dist_desc, host_sign_list, param_scope, envs); send_ctx, recv_ctx, dist_desc, host_sign_list, param_scope, envs);
} else { } else {
PADDLE_THROW(platform::errors::InvalidArgument( PADDLE_THROW(platform::errors::InvalidArgument(
"unsuported communicator MODE")); "unsupported communicator MODE"));
} }
return Communicator::GetInstantcePtr(); return Communicator::GetInstantcePtr();
})) }))
......
...@@ -116,6 +116,6 @@ make -j8 ...@@ -116,6 +116,6 @@ make -j8
- **build_paddle.sh**: paddle building script - **build_paddle.sh**: paddle building script
- **build_inside.sh**: build_paddle.sh will invoke this script inside the docker for compiling. - **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. - **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. - **package.txt**: build required develop packages for alpine linux.
- **REAME.md**: this file. - **REAME.md**: this file.
...@@ -54,7 +54,7 @@ set(FLUID_CORE_DEPS ${FLUID_CORE}) ...@@ -54,7 +54,7 @@ set(FLUID_CORE_DEPS ${FLUID_CORE})
add_custom_target(copy_libpaddle ALL DEPENDS ${FLUID_CORE_DEPS}) add_custom_target(copy_libpaddle ALL DEPENDS ${FLUID_CORE_DEPS})
# Standard op(phi op) description is defined in ops.yaml and legacy_ops.yaml. # 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 # 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 # some gap of description between current op and standard ones. So special dictionary
# is needed to record such gap for execution of composite rules. # is needed to record such gap for execution of composite rules.
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""Defination of Role Makers.""" """Definition of Role Makers."""
import os import os
import time import time
import warnings import warnings
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""Defination of device workers.""" """Definition of device workers."""
__all__ = [ __all__ = [
'DeviceWorker', 'DeviceWorker',
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""Defination of trainers.""" """Definition of trainers."""
import sys import sys
import os import os
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""Defination of TrainerFactory.""" """Definition of TrainerFactory."""
import threading import threading
import time import time
...@@ -160,7 +160,7 @@ class TrainerFactory: ...@@ -160,7 +160,7 @@ class TrainerFactory:
class FetchHandlerMonitor: class FetchHandlerMonitor:
""" """
Defination of FetchHandlerMonitor class, Definition of FetchHandlerMonitor class,
it's for fetch handler. it's for fetch handler.
""" """
......
...@@ -115,7 +115,7 @@ def composite_batchnorm( ...@@ -115,7 +115,7 @@ def composite_batchnorm(
run_mean_ = assign(run_mean) run_mean_ = assign(run_mean)
run_var_ = assign(run_var) 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 reserve_space = None
return y, run_mean_, run_var_, batch_mean_, batch_var_, reserve_space return y, run_mean_, run_var_, batch_mean_, batch_var_, reserve_space
......
...@@ -623,7 +623,7 @@ def _lower_composite(block, blacklist=[]): ...@@ -623,7 +623,7 @@ def _lower_composite(block, blacklist=[]):
new_outs, new_outs,
): ):
if orig_out is None: 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 continue
elif new_out is not None: elif new_out is not None:
assert orig_out.dtype == new_out.dtype, ( assert orig_out.dtype == new_out.dtype, (
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
"""Defination of PSLib.""" """Definition of PSLib."""
import os import os
import sys import sys
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # 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 # NOTE: reduce removed in fuctools in python3
from functools import reduce from functools import reduce
......
...@@ -614,7 +614,7 @@ class DistributedAdam(DistributedOptimizerImplBase): ...@@ -614,7 +614,7 @@ class DistributedAdam(DistributedOptimizerImplBase):
) )
idx += 1 idx += 1
# check config in op defination and fleet config # check config in op definition and fleet config
if FLEET_GLOBAL_DICT["enable"]: if FLEET_GLOBAL_DICT["enable"]:
one_slot = None one_slot = None
strategy["device_worker"] = "Hogwild" strategy["device_worker"] = "Hogwild"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""Defination of Role Makers.""" """Definition of Role Makers."""
import os import os
import time import time
......
...@@ -596,7 +596,7 @@ def norm(x, p='fro', axis=None, keepdim=False, name=None): ...@@ -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) return inf_norm(x, porder=p, axis=axis, keepdim=keepdim, name=name)
elif p == 0: elif p == 0:
raise ValueError( 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 axis
) )
) )
......
...@@ -47,7 +47,7 @@ function get_docs_pr_num_from_paddle_pr_info(){ ...@@ -47,7 +47,7 @@ function get_docs_pr_num_from_paddle_pr_info(){
# Attention: # Attention:
# 1. /FluidDoc will be used as the workspace of PaddlePaddle/docs. # 1. /FluidDoc will be used as the workspace of PaddlePaddle/docs.
# 2. And /docs is used as the output of doc-build process. # 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. # OUTPUTDIR in the subsequent codes.
# 4. The doc-build process is controlled under EnvVar BUILD_DOC and UPLOAD_DOC. # 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. # All the Chinese and English docs will be generated, and then uploaded.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册