From 7d0770000e821f46225243b0aa7e2270ba036d65 Mon Sep 17 00:00:00 2001 From: HongyuJia Date: Wed, 22 Feb 2023 10:44:27 +0800 Subject: [PATCH] [Fix Typo] Fix typo error, implemention->implementation (#50495) * fix py::array_t calling bug * fix typo, implemention->implementation, test=document_fix --- paddle/phi/api/include/tensor.h | 6 +++--- paddle/phi/common/scalar.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/phi/api/include/tensor.h b/paddle/phi/api/include/tensor.h index 0cef41d5259..fc37ec6172c 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 5aee59f52ff..b0d2f90c9ba 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_; } -- GitLab