提交 f4c56e9f 编写于 作者: L Leo Chen 提交者: Zeng Jinle

Polish en doc of LoDTensorArray, test=document_fix (#19972)

* Polish en doc of LoDTensorArray, test=develop, test=document_fix

* follow comments, test=develop, test=document_dix
上级 9acdb6e8
...@@ -1055,7 +1055,7 @@ paddle.fluid.LoDTensor.recursive_sequence_lengths recursive_sequence_lengths(sel ...@@ -1055,7 +1055,7 @@ paddle.fluid.LoDTensor.recursive_sequence_lengths recursive_sequence_lengths(sel
paddle.fluid.LoDTensor.set_lod set_lod(self: paddle.fluid.core_avx.LoDTensor, lod: List[List[int]]) -> None paddle.fluid.LoDTensor.set_lod set_lod(self: paddle.fluid.core_avx.LoDTensor, lod: List[List[int]]) -> None
paddle.fluid.LoDTensor.set_recursive_sequence_lengths set_recursive_sequence_lengths(self: paddle.fluid.core_avx.LoDTensor, recursive_sequence_lengths: List[List[int]]) -> None paddle.fluid.LoDTensor.set_recursive_sequence_lengths set_recursive_sequence_lengths(self: paddle.fluid.core_avx.LoDTensor, recursive_sequence_lengths: List[List[int]]) -> None
paddle.fluid.LoDTensor.shape shape(self: paddle.fluid.core_avx.Tensor) -> List[int] paddle.fluid.LoDTensor.shape shape(self: paddle.fluid.core_avx.Tensor) -> List[int]
paddle.fluid.LoDTensorArray ('paddle.fluid.core_avx.LoDTensorArray', ('document', 'e9895b67ba54438b9c0f7053e18966f5')) paddle.fluid.LoDTensorArray ('paddle.fluid.core_avx.LoDTensorArray', ('document', '54b28e608be8c035f2bbe18a5c12cfd2'))
paddle.fluid.LoDTensorArray.__init__ __init__(self: paddle.fluid.core_avx.LoDTensorArray) -> None paddle.fluid.LoDTensorArray.__init__ __init__(self: paddle.fluid.core_avx.LoDTensorArray) -> None
paddle.fluid.LoDTensorArray.append append(self: paddle.fluid.core_avx.LoDTensorArray, tensor: paddle.fluid.core_avx.LoDTensor) -> None paddle.fluid.LoDTensorArray.append append(self: paddle.fluid.core_avx.LoDTensorArray, tensor: paddle.fluid.core_avx.LoDTensor) -> None
paddle.fluid.CPUPlace ('paddle.fluid.core_avx.CPUPlace', ('document', 'd269ec68ce9b102ab10610e89ffa06e1')) paddle.fluid.CPUPlace ('paddle.fluid.core_avx.CPUPlace', ('document', 'd269ec68ce9b102ab10610e89ffa06e1'))
......
...@@ -1131,7 +1131,7 @@ All parameter, weight, gradient are variables in Paddle. ...@@ -1131,7 +1131,7 @@ All parameter, weight, gradient are variables in Paddle.
}); });
py::class_<LoDTensorArray>(m, "LoDTensorArray", R"DOC( py::class_<LoDTensorArray>(m, "LoDTensorArray", R"DOC(
Array of LoDTensor. LoDTensorArray is array of LoDTensor, it supports operator[], len() and for-loop iteration.
Examples: Examples:
.. code-block:: python .. code-block:: python
...@@ -1160,6 +1160,12 @@ All parameter, weight, gradient are variables in Paddle. ...@@ -1160,6 +1160,12 @@ All parameter, weight, gradient are variables in Paddle.
}, },
py::arg("tensor"), R"DOC( py::arg("tensor"), R"DOC(
Append a LoDensor to LoDTensorArray. Append a LoDensor to LoDTensorArray.
Args:
tensor (LoDTensor): The LoDTensor to be appended.
Returns:
None.
Examples: Examples:
.. code-block:: python .. code-block:: python
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册