Skip to content

Commit

Permalink
update a38--a40
Browse files Browse the repository at this point in the history
  • Loading branch information
mouren committed Nov 20, 2024
1 parent c27d8ff commit 42e4c2d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ configurated = 'configurated'
perfome = 'perfome'
consructor = 'consructor'
quitted = 'quitted'
attribtes = 'attribtes'
orignal = 'orignal'
furture = 'furture'
Indext = 'Indext'
Expand Down Expand Up @@ -662,7 +661,6 @@ Succeess = 'Succeess'
assined = 'assined'
expolitation = 'expolitation'
keyward = 'keyward'
attemps = 'attemps'
Swith = 'Swith'
implementated = 'implementated'
flattern = 'flattern'
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
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

0 comments on commit 42e4c2d

Please sign in to comment.