前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >tensorflow math api 汇总表

tensorflow math api 汇总表

作者头像
JNingWei
发布2018-09-28 16:20:26
5220
发布2018-09-28 16:20:26
举报
文章被收录于专栏:JNing的专栏JNing的专栏

  Defined in tensorflow/python/ops/math_ops.py

op

Args

Annotation

tf.add

(x, y, name=None)

求和

tf.subtract

(x, y, name=None)

减法

tf.multiply

(x, y, name=None)

乘法

tf.div

(x, y, name=None)

除法

tf.mod

(x, y, name=None)

取模

tf.abs

(x, name=None)

求绝对值

tf.negative

(x, name=None)

取负 (y = -x).

tf.sign

(x, name=None)

返回符号 y = sign(x) = -1 if x < 0; 0 if x == 0; 1 if x > 0.

tf.square

(x, name=None)

计算平方 (y = x * x = x^2).

tf.round

(x, name=None)

舍入最接近的整数 # ‘a’ is [0.9, 2.5, 2.3, -4.4] tf.round(a) ==> [ 1.0, 3.0, 2.0, -4.0 ]

tf.sqrt

(x, name=None)

开根号 (y = \sqrt{x} = x^{1/2}).

tf.pow

(x, y, name=None)

幂次方 # tensor ‘x’ is [[2, 2], [3, 3]] # tensor ‘y’ is [[8, 16], [2, 3]] tf.pow(x, y) ==> [[256, 65536], [9, 27]]

tf.exp

(x, name=None)

计算e的次方

tf.log

(x, name=None)

计算log,一个输入计算e的ln,两输入以第二输入为底

tf.log1p

(x, name=None)

计算e为底的log(1+x)

tf.maximum

(x, y, name=None)

返回最大值 (x > y ? x : y)

tf.minimum

(x, y, name=None)

返回最小值 (x < y ? x : y)

tf.cos

(x, name=None)

三角函数cos

tf.sin

(x, name=None)

三角函数sin

tf.tan

(x, name=None)

三角函数tan



本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年06月22日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档