Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle][Typos][L-[8-14]] Fix typos(levle,linke,lsit,lits,localy,Localy,logarithmical,Loggin) #70511

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ std::optional<pir::ShapeConstraintIRAnalysis*> 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<std::mutex> lock(mutex);
Expand All @@ -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<std::mutex> lock(mutex);
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/logspace_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LogspaceOpMaker : public framework::OpProtoAndCheckerMaker {
AddAttr<int>("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
Expand Down
2 changes: 1 addition & 1 deletion paddle/scripts/paddle_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/distributed/auto_parallel/static/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/jit/dy2static/convert_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions python/paddle/tensor/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion test/cpp/fluid/beam_search_decode_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void GenerateExample(const std::vector<size_t>& 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));
Expand Down
2 changes: 1 addition & 1 deletion test/dygraph_to_static/test_declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}])

Expand Down
2 changes: 1 addition & 1 deletion test/xpu/cpp/beam_search_decode_op_xpu_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void GenerateXPUExample(const std::vector<size_t>& 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));
Expand Down
Loading