Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
7d822816
T
tensorflow
项目概览
qq_38905368
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7d822816
编写于
6月 24, 2016
作者:
A
A. Unique TensorFlower
提交者:
TensorFlower Gardener
6月 24, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use float32 and float64 instead of float and double.
Change: 125783060
上级
2d0dcd9f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
tensorflow/python/ops/math_ops.py
tensorflow/python/ops/math_ops.py
+15
-15
未找到文件。
tensorflow/python/ops/math_ops.py
浏览文件 @
7d822816
...
...
@@ -239,7 +239,7 @@ def abs(x, name=None):
number.
Args:
x: A `Tensor` or `SparseTensor` of type `float
`, `double
`, `int32`, or
x: A `Tensor` or `SparseTensor` of type `float
32`, `float64
`, `int32`, or
`int64`.
name: A name for the operation (optional).
...
...
@@ -310,7 +310,7 @@ def complex_abs(x, name=None):
r
"""Computes the complex absolute value of a tensor.
Given a tensor `x` of complex numbers, this operation returns a tensor of type
`float
` or `double
` that is the absolute value of each element in `x`. All
`float
32` or `float64
` that is the absolute value of each element in `x`. All
elements in `x` must be complex numbers of the form \\(a + bj\\). The
absolute value is computed as \\( \sqrt{a^2 + b^2}\\).
...
...
@@ -372,10 +372,10 @@ def pow(x, y, name=None):
```
Args:
x: A `Tensor` of type `float
`, `double`, `int32`, `int64`, `complex64`, or
`complex128`.
y: A `Tensor` of type `float
`, `double`, `int32`, `int64`, `complex64`, or
`complex128`.
x: A `Tensor` of type `float
32`, `float64`, `int32`, `int64`, `complex64`,
or
`complex128`.
y: A `Tensor` of type `float
32`, `float64`, `int32`, `int64`, `complex64`,
or
`complex128`.
name: A name for the operation (optional).
Returns:
...
...
@@ -429,7 +429,7 @@ def real(input, name=None):
"""Returns the real part of a complex number.
Given a tensor `input` of complex numbers, this operation returns a tensor of
type `float
` or `double
` that is the real part of each element in `input`.
type `float
32` or `float64
` that is the real part of each element in `input`.
All elements in `input` must be complex numbers of the form
\\
(a + bj
\\
),
where *a* is the real part returned by this operation and *b* is the
imaginary part.
...
...
@@ -447,7 +447,7 @@ def real(input, name=None):
name: A name for the operation (optional).
Returns:
A `Tensor` of type `float
` or `double
`.
A `Tensor` of type `float
32` or `float64
`.
"""
with
ops
.
op_scope
([
input
],
name
,
"Real"
)
as
name
:
return
gen_math_ops
.
real
(
input
,
Tout
=
input
.
dtype
.
real_dtype
,
name
=
name
)
...
...
@@ -457,7 +457,7 @@ def imag(input, name=None):
"""Returns the imaginary part of a complex number.
Given a tensor `input` of complex numbers, this operation returns a tensor of
type `float
` or `double
` that is the imaginary part of each element in
type `float
32` or `float64
` that is the imaginary part of each element in
`input`. All elements in `input` must be complex numbers of the form
\\
(a +
bj
\\
), where *a* is the real part and *b* is the imaginary part returned by
this operation.
...
...
@@ -474,7 +474,7 @@ def imag(input, name=None):
name: A name for the operation (optional).
Returns:
A `Tensor` of type `float
` or `double
`.
A `Tensor` of type `float
32` or `float64
`.
"""
with
ops
.
op_scope
([
input
],
name
,
"Imag"
)
as
name
:
return
gen_math_ops
.
imag
(
input
,
Tout
=
input
.
dtype
.
real_dtype
,
name
=
name
)
...
...
@@ -491,7 +491,7 @@ def round(x, name=None):
```
Args:
x: A `Tensor` of type `float
` or `double
`.
x: A `Tensor` of type `float
32` or `float64
`.
name: A name for the operation (optional).
Returns:
...
...
@@ -1213,7 +1213,7 @@ def matmul(a, b,
possibly after transposition.
Both matrices must be of the same type. The supported types are:
`float
`, `double
`, `int32`, `complex64`.
`float
32`, `float64
`, `int32`, `complex64`.
Either matrix can be transposed on the fly by setting the corresponding flag
to `True`. This is `False` by default.
...
...
@@ -1237,7 +1237,7 @@ def matmul(a, b,
```
Args:
a: `Tensor` of type `float
`, `double
`, `int32` or `complex64`.
a: `Tensor` of type `float
32`, `float64
`, `int32` or `complex64`.
b: `Tensor` with same type as `a`.
transpose_a: If `True`, `a` is transposed before multiplication.
transpose_b: If `True`, `b` is transposed before multiplication.
...
...
@@ -1489,7 +1489,7 @@ def sigmoid(x, name=None):
Specifically, `y = 1 / (1 + exp(-x))`.
Args:
x: A Tensor with type `float
`, `double
`, `int32`, `complex64`, `int64`,
x: A Tensor with type `float
32`, `float64
`, `int32`, `complex64`, `int64`,
or `qint32`.
name: A name for the operation (optional).
...
...
@@ -1506,7 +1506,7 @@ def tanh(x, name=None):
"""Computes hyperbolic tangent of `x` element-wise.
Args:
x: A Tensor with type `float
`, `double
`, `int32`, `complex64`, `int64`,
x: A Tensor with type `float
32`, `float64
`, `int32`, `complex64`, `int64`,
or `qint32`.
name: A name for the operation (optional).
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录