未验证 提交 7d077000 编写于 作者: H HongyuJia 提交者: GitHub

[Fix Typo] Fix typo error, implemention->implementation (#50495)

* fix py::array_t calling bug

* fix typo, implemention->implementation, test=document_fix
上级 cf95db58
...@@ -380,21 +380,21 @@ class PADDLE_API Tensor final { ...@@ -380,21 +380,21 @@ class PADDLE_API Tensor final {
Tensor slice(int64_t begin_idx, int64_t end_idx) const; 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<phi::TensorBase> * @return std::shared_ptr<phi::TensorBase>
*/ */
const std::shared_ptr<phi::TensorBase>& impl() const; const std::shared_ptr<phi::TensorBase>& impl() const;
/** /**
* @brief Set the implemention of current Tensor. * @brief Set the implementation of current Tensor.
* *
* @param impl * @param impl
*/ */
void set_impl(const std::shared_ptr<phi::TensorBase>& impl); void set_impl(const std::shared_ptr<phi::TensorBase>& impl);
/** /**
* @brief Set the implemention of current Tensor. * @brief Set the implementation of current Tensor.
* *
* @param impl * @param impl
*/ */
......
...@@ -111,7 +111,7 @@ class ScalarBase { ...@@ -111,7 +111,7 @@ class ScalarBase {
CopyScalar(other, this); 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. // interface.
bool FromTensor() const { return is_from_tensor_; } bool FromTensor() const { return is_from_tensor_; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册