diff --git a/paddle/phi/api/include/tensor.h b/paddle/phi/api/include/tensor.h index 0cef41d5259a070193078f9f452b69a1ec23ecca..fc37ec6172c4c3cdb7207d386e3a3867d81ac591 100644 --- a/paddle/phi/api/include/tensor.h +++ b/paddle/phi/api/include/tensor.h @@ -380,21 +380,21 @@ class PADDLE_API Tensor final { Tensor slice(int64_t begin_idx, int64_t end_idx) const; /** - * @brief Return the implemention of current Tensor. + * @brief Return the implementation of current Tensor. * * @return std::shared_ptr */ const std::shared_ptr& impl() const; /** - * @brief Set the implemention of current Tensor. + * @brief Set the implementation of current Tensor. * * @param impl */ void set_impl(const std::shared_ptr& impl); /** - * @brief Set the implemention of current Tensor. + * @brief Set the implementation of current Tensor. * * @param impl */ diff --git a/paddle/phi/common/scalar.h b/paddle/phi/common/scalar.h index 5aee59f52ffae28f704d7a2c9dff73a46c7d5657..b0d2f90c9baa6867a5ca15b6257a3873364679c2 100644 --- a/paddle/phi/common/scalar.h +++ b/paddle/phi/common/scalar.h @@ -111,7 +111,7 @@ class ScalarBase { CopyScalar(other, this); } - // NOTE(xiongkun): some op need to judge the dtype of the Scalar, we expose a + // NOTE(xiongkun): some op need to judge the dtype of the Scalar, we expose an // interface. bool FromTensor() const { return is_from_tensor_; }