Skip to content

Commit

Permalink
a38,a39
Browse files Browse the repository at this point in the history
  • Loading branch information
mouren committed Nov 20, 2024
1 parent c27d8ff commit 04250ff
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@ Succeess = 'Succeess'
assined = 'assined'
expolitation = 'expolitation'
keyward = 'keyward'
attemps = 'attemps'
Swith = 'Swith'
implementated = 'implementated'
flattern = 'flattern'
Expand Down Expand Up @@ -716,7 +715,6 @@ learing = 'learing'
noraml = 'noraml'
padd = 'padd'
Requred = 'Requred'
astroid = 'astroid'
Fidn = 'Fidn'
mak = 'mak'
temporaly = 'temporaly'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ bool FusedAttentionOpInferSymbolicShape(
symbol::ShapeOrDataDimExprs{
symbol::TensorShapeOrDataDimExprs(x_shape)});
} else {
// The follwing three code used to set unoptional output value.
// The following three code used to set unoptional output value.
// Now it's result related to the infermeta.
infer_context->SetSymbolForValueByStaticShape(op->result(0));
infer_context->SetSymbolForValueByStaticShape(op->result(1));
Expand Down Expand Up @@ -1863,7 +1863,7 @@ bool FusedAttentionOpInferSymbolicShape(
symbol::ShapeOrDataDimExprs{symbol::TensorShapeOrDataDimExprs(
{x_shape[0], num_heads, x_shape[1], out_seq_len})});
} else {
// The follwing code used to set unoptional output value.
// The following code used to set unoptional output value.
// Now it's result related to the infermeta.
infer_context->SetSymbolForValueByStaticShape(op->result(11));
}
Expand All @@ -1878,7 +1878,7 @@ bool FusedAttentionOpInferSymbolicShape(
symbol::ShapeOrDataDimExprs{symbol::TensorShapeOrDataDimExprs(
{x_shape[0], num_heads, x_shape[1], out_seq_len})});
} else {
// The follwing code used to set unoptional output value.
// The following code used to set unoptional output value.
// Now it's result related to the infermeta.
infer_context->SetSymbolForValueByStaticShape(op->result(9));
}
Expand Down Expand Up @@ -1910,7 +1910,7 @@ bool FusedAttentionOpInferSymbolicShape(
symbol::ShapeOrDataDimExprs{
symbol::TensorShapeOrDataDimExprs(x_shape)});
} else {
// The follwing code used to set unoptional output value.
// The following code used to set unoptional output value.
// Now it's result related to the infermeta.
infer_context->SetSymbolForValueByStaticShape(op->result(14));
}
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/core/string_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void StringTensor::init_holder() {
// TODO(zhoushunjie): Need to support more places
PADDLE_THROW(
errors::Unimplemented("StringTensor can only be created in CPU or GPU "
"place. But now attemps to "
"place. But now attempts to "
"create StringTensor on %s",
place.DebugString()));
}
Expand Down
6 changes: 3 additions & 3 deletions tools/dockerfile/Dockerfile.develop.dtk
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ RUN pip3.10 install --upgrade pip setuptools wheel && \
pip3.8 install --upgrade pip setuptools wheel

# install pylint and pre-commit
RUN pip3.10 install pre-commit==2.17.0 pylint pytest astroid isort coverage qtconsole distro && \
pip3.9 install pre-commit==2.17.0 pylint pytest astroid isort coverage qtconsole distro && \
pip3.8 install pre-commit==2.17.0 pylint pytest astroid isort coverage qtconsole distro
RUN pip3.10 install pre-commit==2.17.0 pylint pytest asteroid isort coverage qtconsole distro && \
pip3.9 install pre-commit==2.17.0 pylint pytest asteroid isort coverage qtconsole distro && \
pip3.8 install pre-commit==2.17.0 pylint pytest asteroid isort coverage qtconsole distro

RUN pip3.10 install attrs pyyaml pathlib2 scipy requests psutil Cython clang-format==13.0.0 PyGithub && \
pip3.9 install attrs pyyaml pathlib2 scipy requests psutil Cython clang-format==13.0.0 PyGithub && \
Expand Down
6 changes: 3 additions & 3 deletions tools/dockerfile/Dockerfile.develop.xre
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ RUN rm -rf /usr/bin/python3 && ln -s /usr/bin/python${PY_VERSION} /usr/bin/pytho
rm -rf /usr/bin/python && ln -s /usr/bin/python${PY_VERSION} /usr/bin/python

# install pylint and pre-commit
RUN pip3.8 install pre-commit==2.17.0 pylint pytest astroid isort coverage qtconsole distro && \
pip3.9 install pre-commit==2.17.0 pylint pytest astroid isort coverage qtconsole distro && \
pip3.10 install pre-commit==2.17.0 pylint pytest astroid isort coverage qtconsole distro
RUN pip3.8 install pre-commit==2.17.0 pylint pytest asteroid isort coverage qtconsole distro && \
pip3.9 install pre-commit==2.17.0 pylint pytest asteroid isort coverage qtconsole distro && \
pip3.10 install pre-commit==2.17.0 pylint pytest asteroid isort coverage qtconsole distro
RUN pip3.8 install attrs pyyaml pathlib2 scipy requests psutil Cython clang-format==13.0.0 && \
pip3.9 install attrs pyyaml pathlib2 scipy requests psutil Cython clang-format==13.0.0 && \
pip3.10 install attrs pyyaml pathlib2 scipy requests psutil Cython clang-format==13.0.0
Expand Down

0 comments on commit 04250ff

Please sign in to comment.