Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
55f6b6ff
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 搜索 >>
提交
55f6b6ff
编写于
6月 02, 2017
作者:
D
David Soergel
提交者:
TensorFlower Gardener
6月 02, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add explicit SparseTensor support to SignatureDef.
PiperOrigin-RevId: 157860466
上级
79099d67
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
123 addition
and
1 deletion
+123
-1
tensorflow/core/protobuf/meta_graph.proto
tensorflow/core/protobuf/meta_graph.proto
+27
-1
tensorflow/tools/api/golden/tensorflow.-tensor-info.-coo-sparse.pbtxt
...ools/api/golden/tensorflow.-tensor-info.-coo-sparse.pbtxt
+88
-0
tensorflow/tools/api/golden/tensorflow.-tensor-info.pbtxt
tensorflow/tools/api/golden/tensorflow.-tensor-info.pbtxt
+8
-0
未找到文件。
tensorflow/core/protobuf/meta_graph.proto
浏览文件 @
55f6b6ff
...
...
@@ -202,8 +202,34 @@ message CollectionDef {
// Information about a Tensor necessary for feeding or retrieval.
message
TensorInfo
{
string
name
=
1
;
// For sparse tensors, The COO encoding stores a triple of values, indices,
// and shape.
message
CooSparse
{
// The shape of the values Tensor is [?]. Its dtype must be the dtype of
// the SparseTensor as a whole, given in the enclosing TensorInfo.
string
values_tensor_name
=
1
;
// The indices Tensor must have dtype int64 and shape [?, ?].
string
indices_tensor_name
=
2
;
// The dynamic logical shape represented by the SparseTensor is recorded in
// the Tensor referenced here. It must have dtype int64 and shape [?].
string
dense_shape_tensor_name
=
3
;
}
oneof
encoding
{
// For dense `Tensor`s, the name of the tensor in the graph.
string
name
=
1
;
// There are many possible encodings of sparse matrices
// (https://en.wikipedia.org/wiki/Sparse_matrix). Currently, TensorFlow
// uses only the COO encoding. This is supported and documented in the
// SparseTensor Python class.
CooSparse
coo_sparse
=
4
;
}
DataType
dtype
=
2
;
// The static shape should be recorded here, to the extent that it can
// be known in advance. In the case of a SparseTensor, this field describes
// the logical shape of the represented tensor (aka dense_shape).
TensorShapeProto
tensor_shape
=
3
;
}
...
...
tensorflow/tools/api/golden/tensorflow.-tensor-info.-coo-sparse.pbtxt
0 → 100644
浏览文件 @
55f6b6ff
path: "tensorflow.TensorInfo.CooSparse"
tf_class {
is_instance: "<class \'tensorflow.core.protobuf.meta_graph_pb2.CooSparse\'>"
is_instance: "<type \'google.protobuf.pyext._message.CMessage\'>"
member {
name: "DENSE_SHAPE_TENSOR_NAME_FIELD_NUMBER"
mtype: "<type \'int\'>"
}
member {
name: "DESCRIPTOR"
mtype: "<type \'google.protobuf.pyext._message.MessageDescriptor\'>"
}
member {
name: "Extensions"
mtype: "<type \'getset_descriptor\'>"
}
member {
name: "INDICES_TENSOR_NAME_FIELD_NUMBER"
mtype: "<type \'int\'>"
}
member {
name: "VALUES_TENSOR_NAME_FIELD_NUMBER"
mtype: "<type \'int\'>"
}
member_method {
name: "ByteSize"
}
member_method {
name: "Clear"
}
member_method {
name: "ClearExtension"
}
member_method {
name: "ClearField"
}
member_method {
name: "CopyFrom"
}
member_method {
name: "DiscardUnknownFields"
}
member_method {
name: "FindInitializationErrors"
}
member_method {
name: "FromString"
}
member_method {
name: "HasExtension"
}
member_method {
name: "HasField"
}
member_method {
name: "IsInitialized"
}
member_method {
name: "ListFields"
}
member_method {
name: "MergeFrom"
}
member_method {
name: "MergeFromString"
}
member_method {
name: "ParseFromString"
}
member_method {
name: "RegisterExtension"
}
member_method {
name: "SerializePartialToString"
}
member_method {
name: "SerializeToString"
}
member_method {
name: "SetInParent"
}
member_method {
name: "WhichOneof"
}
member_method {
name: "__init__"
}
}
tensorflow/tools/api/golden/tensorflow.-tensor-info.pbtxt
浏览文件 @
55f6b6ff
...
...
@@ -2,6 +2,14 @@ path: "tensorflow.TensorInfo"
tf_class {
is_instance: "<class \'tensorflow.core.protobuf.meta_graph_pb2.TensorInfo\'>"
is_instance: "<type \'google.protobuf.pyext._message.CMessage\'>"
member {
name: "COO_SPARSE_FIELD_NUMBER"
mtype: "<type \'int\'>"
}
member {
name: "CooSparse"
mtype: "<class \'google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType\'>"
}
member {
name: "DESCRIPTOR"
mtype: "<type \'google.protobuf.pyext._message.MessageDescriptor\'>"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录