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][A-[38-40]] Fix typo (astroid,attemps,attribtes) #69558

Merged
merged 3 commits into from
Nov 22, 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
4 changes: 1 addition & 3 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ grad = "grad"
arange = "arange"
ot = 'ot'
pash = 'pash'
astroid = 'astroid'
eles = 'eles'

# These words need to be fixed
Expand Down Expand Up @@ -298,7 +299,6 @@ configurated = 'configurated'
perfome = 'perfome'
consructor = 'consructor'
quitted = 'quitted'
attribtes = 'attribtes'
orignal = 'orignal'
furture = 'furture'
Indext = 'Indext'
Expand Down Expand Up @@ -667,7 +667,6 @@ Succeess = 'Succeess'
assined = 'assined'
expolitation = 'expolitation'
keyward = 'keyward'
attemps = 'attemps'
Swith = 'Swith'
implementated = 'implementated'
flattern = 'flattern'
Expand Down Expand Up @@ -721,7 +720,6 @@ learing = 'learing'
noraml = 'noraml'
padd = 'padd'
Requred = 'Requred'
astroid = 'astroid'
Fidn = 'Fidn'
mak = 'mak'
temporaly = 'temporaly'
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
2 changes: 1 addition & 1 deletion test/legacy_test/test_eager_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_to_tensor_with_lodtensor(self):
np.testing.assert_array_equal(a_np, a.numpy())
self.assertTrue(a.place.__repr__(), "Place(cpu)")

def test_to_tensor_attribtes(self):
def test_to_tensor_attributes(self):
var = paddle.to_tensor(self.array)
np.testing.assert_array_equal(var.numpy(), self.array)
# default value
Expand Down