用于计算倒数的tf.reciprocal函数

2018-12-06 10:20 更新
tf.reciprocal 函数
reciprocal(
    x,
    name=None
)

请参阅指南:数学函数>基本数学函数

计算 x 元素的倒数.

即,\(y = 1 / x\).

参数:

  • x:Tensor,必须是下列类型之一:half,float32,float64,int32,int64,complex64,complex128, .
  • name:操作的名称(可选).

返回:

该函数返回一个 Tensor.与 x 具有相同的类型.

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy