Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
b5943bd1
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 搜索 >>
提交
b5943bd1
编写于
10月 31, 2016
作者:
Y
Yifei Feng
提交者:
GitHub
10月 31, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Small header changes and a Doxygen tweak to shape the C++ API a bit better. (#5304)
Change: 135747447 (cherry picked from commit
120c3f11
)
上级
83aedd7e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
29 addition
and
1 deletion
+29
-1
tensorflow/core/framework/tensor.h
tensorflow/core/framework/tensor.h
+4
-0
tensorflow/core/framework/tensor_shape.h
tensorflow/core/framework/tensor_shape.h
+15
-1
tensorflow/core/lib/core/status.h
tensorflow/core/lib/core/status.h
+1
-0
tensorflow/core/platform/env.h
tensorflow/core/platform/env.h
+5
-0
tensorflow/core/platform/file_system.h
tensorflow/core/platform/file_system.h
+4
-0
未找到文件。
tensorflow/core/framework/tensor.h
浏览文件 @
b5943bd1
...
...
@@ -466,6 +466,8 @@ class Tensor {
// Implementation details
// START_SKIP_DOXYGEN
// Interface to access the raw ref-counted data buffer.
class
TensorBuffer
:
public
core
::
RefCounted
{
public:
...
...
@@ -659,6 +661,8 @@ inline Tensor& Tensor::operator=(Tensor&& other) {
return
*
this
;
}
// END_SKIP_DOXYGEN
}
// namespace tensorflow
#endif // TENSORFLOW_CORE_FRAMEWORK_TENSOR_H_
tensorflow/core/framework/tensor_shape.h
浏览文件 @
b5943bd1
...
...
@@ -31,8 +31,19 @@ limitations under the License.
namespace
tensorflow
{
// START_SKIP_DOXYGEN
class
TensorShapeIter
;
// Declared below
// END_SKIP_DOXYGEN
/// Represents the shape of a Tensor.
///
/// A tensor's shape is denoted by its number of dimensions and a size for each
/// dimension. For example, a Tensor represented by a 3 x 4 matrix would have
/// a shape of 2-D, [3,4].
///
/// If you know the exact shape of your Tensor when you create the TensorShape
/// object, you can specify it then, or you can create a TensorShape with
/// zero dimensions and one element, and call AddDim() to add dimensions later.
class
TensorShape
{
public:
/// \brief Construct a `TensorShape` from the provided sizes.
...
...
@@ -220,11 +231,13 @@ class TensorShape {
int64
num_elements_
;
};
/// Represents the value of one dimension in a TensorShape.
struct
TensorShapeDim
{
explicit
TensorShapeDim
(
int64
s
)
:
size
(
s
)
{}
int64
size
;
};
// START_SKIP_DOXYGEN
class
TensorShapeIter
{
public:
TensorShapeIter
(
const
TensorShape
*
shape
,
int
d
)
:
shape_
(
shape
),
d_
(
d
)
{}
...
...
@@ -243,6 +256,7 @@ class TensorShapeIter {
const
TensorShape
*
shape_
;
int
d_
;
};
// END_SKIP_DOXYGEN
/// \brief Static helper routines for `TensorShape`. Includes a few common
/// predicates on a tensor shape.
...
...
tensorflow/core/lib/core/status.h
浏览文件 @
b5943bd1
...
...
@@ -25,6 +25,7 @@ limitations under the License.
namespace
tensorflow
{
/// Denotes success or failure of a call in Tensorflow.
class
Status
{
public:
/// Create a success status.
...
...
tensorflow/core/platform/env.h
浏览文件 @
b5943bd1
...
...
@@ -343,6 +343,7 @@ class EnvWrapper : public Env {
Env
*
target_
;
};
/// Represents a thread used to run a Tensorflow function.
class
Thread
{
public:
Thread
()
{}
...
...
@@ -382,6 +383,8 @@ Status WriteBinaryProto(Env* env, const string& fname,
Status
ReadBinaryProto
(
Env
*
env
,
const
string
&
fname
,
::
tensorflow
::
protobuf
::
MessageLite
*
proto
);
// START_SKIP_DOXYGEN
namespace
register_file_system
{
template
<
typename
Factory
>
...
...
@@ -394,6 +397,8 @@ struct Register {
}
// namespace register_file_system
// END_SKIP_DOXYGEN
}
// namespace tensorflow
// Register a FileSystem implementation for a scheme. Files with names that have
...
...
tensorflow/core/platform/file_system.h
浏览文件 @
b5943bd1
...
...
@@ -98,6 +98,8 @@ class FileSystem {
virtual
Status
IsDirectory
(
const
string
&
fname
);
};
// START_SKIP_DOXYGEN
#ifndef SWIG
// Degenerate file system that provides no implementations.
class
NullFileSystem
:
public
FileSystem
{
...
...
@@ -160,6 +162,8 @@ class NullFileSystem : public FileSystem {
};
#endif
// END_SKIP_DOXYGEN
/// A file abstraction for randomly reading the contents of a file.
class
RandomAccessFile
{
public:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录