TensorFlow函数:tf.negative

2018-11-03 17:22 更新
tf.negative 函数
negative(
    x,
    name=None
)

定义在:tensorflow/python/ops/math_ops.py.

参考指南:数学函数>基本数学函数

计算数值的负值元素,即:y = -x

参数:

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

返回值:

该函数将返回一个张量或者 SparseTensor,与 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