Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 442 Bytes

tolist_cn.rst

File metadata and controls

28 lines (15 loc) · 442 Bytes

tolist

.. py:function:: paddle.tolist(x)

将 paddle Tensor 转化为 python list,注意:只适用于动态图。

参数

  • x (Tensor) - 输入的 Tensor,数据类型为:float32、float64、bool、int8、int32、int64。

返回

Tensor 对应结构的 list。

代码示例

COPY-FROM: paddle.tolist