Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
8242b4dd
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,发现更多精彩内容 >>
提交
8242b4dd
编写于
12月 09, 2015
作者:
V
Vijay Vasudevan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TensorFlow: some more python3 compatibility test fixes
Change-Id: I5678cbdfb45757e2218494f542c9b0a0d5cc16a4
上级
014ff10c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
tensorflow/python/kernel_tests/parsing_ops_test.py
tensorflow/python/kernel_tests/parsing_ops_test.py
+2
-2
tensorflow/python/kernel_tests/sparse_serialization_ops_test.py
...flow/python/kernel_tests/sparse_serialization_ops_test.py
+1
-1
tensorflow/python/ops/image_ops_test.py
tensorflow/python/ops/image_ops_test.py
+2
-2
未找到文件。
tensorflow/python/kernel_tests/parsing_ops_test.py
浏览文件 @
8242b4dd
...
...
@@ -610,7 +610,7 @@ class ParseSequenceExampleTest(tf.test.TestCase):
int64_feature
([
5
,
6
,
7
]),
int64_feature
([
8
,
9
,
10
]),]),
"b"
:
feature_list
([
bytes_feature
([
"r00"
,
"r01"
,
"r10"
,
"r11"
])]),
bytes_feature
([
b
"r00"
,
b
"r01"
,
b
"r10"
,
b
"r11"
])]),
"c"
:
feature_list
([
float_feature
([
3
,
4
]),
float_feature
([
-
1
,
2
])]),
...
...
@@ -625,7 +625,7 @@ class ParseSequenceExampleTest(tf.test.TestCase):
[[
5
,
6
,
7
]],
[[
8
,
9
,
10
]]],
dtype
=
np
.
int64
),
"b"
:
np
.
array
([
# outer dimension is time, inside are 2x2 matrices
[[
"r00"
,
"r01"
],
[
"r10"
,
"r11"
]]],
dtype
=
np
.
str
),
[[
b
"r00"
,
b
"r01"
],
[
b
"r10"
,
b
"r11"
]]],
dtype
=
np
.
str
),
"c"
:
np
.
array
([
# outer dimension is time, inside are 2-vectors
[
3
,
4
],
[
-
1
,
2
]],
dtype
=
np
.
float32
),
...
...
tensorflow/python/kernel_tests/sparse_serialization_ops_test.py
浏览文件 @
8242b4dd
...
...
@@ -95,7 +95,7 @@ class SerializeSparseTest(tf.test.TestCase):
with
self
.
test_session
(
use_gpu
=
False
)
as
sess
:
# N == 4 because shape_value == [4, 5]
indices_value
=
np
.
array
([[
0
,
0
],
[
0
,
1
],
[
2
,
0
]],
dtype
=
np
.
int64
)
values_value
=
np
.
array
([
"a"
,
"b"
,
"c"
])
values_value
=
np
.
array
([
b
"a"
,
b
"b"
,
b
"c"
])
shape_value
=
np
.
array
([
4
,
5
],
dtype
=
np
.
int64
)
sparse_tensor
=
self
.
_SparseTensorPlaceholder
(
dtype
=
tf
.
string
)
serialized
=
tf
.
serialize_many_sparse
(
sparse_tensor
)
...
...
tensorflow/python/ops/image_ops_test.py
浏览文件 @
8242b4dd
...
...
@@ -49,8 +49,8 @@ class RGBToHSVTest(test_util.TensorFlowTestCase):
batch1
=
image_ops
.
rgb_to_hsv
(
batch0
)
batch2
=
image_ops
.
hsv_to_rgb
(
batch1
)
split0
=
array_ops
.
unpack
(
batch0
)
split1
=
map
(
image_ops
.
rgb_to_hsv
,
split0
)
split2
=
map
(
image_ops
.
hsv_to_rgb
,
split1
)
split1
=
list
(
map
(
image_ops
.
rgb_to_hsv
,
split0
)
)
split2
=
list
(
map
(
image_ops
.
hsv_to_rgb
,
split1
)
)
join1
=
array_ops
.
pack
(
split1
)
join2
=
array_ops
.
pack
(
split2
)
batch1
,
batch2
,
join1
,
join2
=
sess
.
run
([
batch1
,
batch2
,
join1
,
join2
])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录