Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
f0bf99f5
T
tensorflow
项目概览
xxadev
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
1
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,体验更适合开发者的 AI 搜索 >>
提交
f0bf99f5
编写于
6月 09, 2017
作者:
A
Amit Patankar
提交者:
GitHub
6月 09, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'r1.2' into r1.2
上级
421de4af
d0ecf280
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
7 deletion
+5
-7
tensorflow/python/kernel_tests/matrix_solve_op_test.py
tensorflow/python/kernel_tests/matrix_solve_op_test.py
+0
-5
tensorflow/python/kernel_tests/sparse_ops_test.py
tensorflow/python/kernel_tests/sparse_ops_test.py
+3
-0
tensorflow/python/ops/check_ops.py
tensorflow/python/ops/check_ops.py
+1
-1
tensorflow/python/ops/embedding_ops.py
tensorflow/python/ops/embedding_ops.py
+1
-1
未找到文件。
tensorflow/python/kernel_tests/matrix_solve_op_test.py
浏览文件 @
f0bf99f5
...
...
@@ -96,11 +96,6 @@ class MatrixSolveOpTest(test.TestCase):
[[
1.
,
0.
,
-
1.
],
[
-
1.
,
1.
,
0.
],
[
0.
,
-
1.
,
1.
]])
linalg_ops
.
matrix_solve
(
matrix
,
matrix
).
eval
()
def
testEmpty
(
self
):
with
self
.
test_session
():
self
.
_verifySolve
(
np
.
empty
([
0
,
0
]),
np
.
empty
([
0
,
0
]))
self
.
_verifySolve
(
np
.
empty
([
2
,
2
]),
np
.
empty
([
2
,
0
]))
if
__name__
==
"__main__"
:
test
.
main
()
tensorflow/python/kernel_tests/sparse_ops_test.py
浏览文件 @
f0bf99f5
...
...
@@ -19,6 +19,7 @@ from __future__ import division
from
__future__
import
print_function
import
numpy
as
np
import
unittest
from
tensorflow.python.framework
import
constant_op
from
tensorflow.python.framework
import
dtypes
...
...
@@ -553,6 +554,7 @@ class SparseReduceSumTest(test_util.TensorFlowTestCase):
self
.
_compare
(
sp_t
,
reduction_axes
,
ndims
,
False
)
self
.
_compare
(
sp_t
,
reduction_axes
,
ndims
,
True
)
@
unittest
.
skipIf
(
np
.
__version__
==
"1.13.0"
,
"numpy 1.13 bug"
)
def
testSimpleAndRandomInputs
(
self
):
sp_t
=
sparse_tensor
.
SparseTensor
(
self
.
ind
,
self
.
vals
,
self
.
dense_shape
)
...
...
@@ -585,6 +587,7 @@ class SparseReduceSumTest(test_util.TensorFlowTestCase):
with
self
.
assertRaisesOpError
(
"Invalid reduction dimension 2"
):
sparse_ops
.
sparse_reduce_sum
(
sp_t
,
2
).
eval
()
@
unittest
.
skipIf
(
np
.
__version__
==
"1.13.0"
,
"numpy 1.13 bug"
)
def
testGradient
(
self
):
np
.
random
.
seed
(
8161
)
test_dims
=
[(
11
,
1
,
5
,
7
,
1
),
(
2
,
2
)]
...
...
tensorflow/python/ops/check_ops.py
浏览文件 @
f0bf99f5
...
...
@@ -726,7 +726,7 @@ def _assert_ranks_condition(
# Attempt to statically defined rank.
ranks_static
=
tuple
([
tensor_util
.
constant_value
(
rank
)
for
rank
in
ranks
])
if
None
not
in
ranks_static
:
if
not
any
(
r
is
None
for
r
in
ranks_static
)
:
for
rank_static
in
ranks_static
:
if
rank_static
.
ndim
!=
0
:
raise
ValueError
(
'Rank must be a scalar.'
)
...
...
tensorflow/python/ops/embedding_ops.py
浏览文件 @
f0bf99f5
...
...
@@ -97,7 +97,7 @@ def embedding_lookup(params, ids, partition_strategy="mod", name=None,
Raises:
ValueError: If `params` is empty.
"""
if
params
i
n
(
None
,
(),
[]):
if
params
i
s
None
or
params
in
(
(),
[]):
raise
ValueError
(
"Need at least one param"
)
if
isinstance
(
params
,
variables
.
PartitionedVariable
):
params
=
list
(
params
)
# Iterate to get the underlying Variables.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录