TensorFlow函数:tf.subtract

2018-03-26 10:51 更新

tf.subtract函数

tf.subtract(
    x,
    y,
    name=None
)

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

请参阅指南:数学函数>算术运算符

返回 x-y 的元素.

注意:Subtract 支持广播.

函数参数:

  • x:一个 Tensor,必须是下列类型之一:half,bfloat16,float32,float64,uint8,int8,uint16,int16,int32,int64,complex64,complex128.
  • y:一个 Tensor,必须与 x 具有相同的类型.
  • name:操作的名称(可选).

函数返回值:

tf.subtract函数返回一个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