Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 562 Bytes

frac_cn.rst

File metadata and controls

25 lines (15 loc) · 562 Bytes

frac

得到输入 Tensor 的小数部分。

参数

  • x (Tensor) : 输入变量,类型为 Tensor, 支持int32、int64、float32、float64数据类型。
  • name (str,可选)- 具体用法请参见 api_guide_Name ,一般无需设置,默认值为None。

返回

  • Tensor (Tensor),输入矩阵只保留小数部分的结果。

代码示例

COPY-FROM: paddle.frac