Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
d95fa1bb
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,发现更多精彩内容 >>
提交
d95fa1bb
编写于
3月 28, 2016
作者:
J
Josh Levenberg
提交者:
TensorFlower Gardener
3月 28, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update generated Python Op docs.
Change: 118369028
上级
e745b2b0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
32 addition
and
10 deletion
+32
-10
tensorflow/g3doc/api_docs/python/io_ops.md
tensorflow/g3doc/api_docs/python/io_ops.md
+32
-10
未找到文件。
tensorflow/g3doc/api_docs/python/io_ops.md
浏览文件 @
d95fa1bb
...
...
@@ -1971,7 +1971,7 @@ want them run by *N* threads.
- - -
### `tf.train.batch(tensor_list, batch_size, num_threads=1, capacity=32, enqueue_many=False, shapes=None, shared_name=None, name=None)` {#batch}
### `tf.train.batch(tensor_list, batch_size, num_threads=1, capacity=32, enqueue_many=False, shapes=None,
dynamic_pad=False,
shared_name=None, name=None)` {#batch}
Creates batches of tensors in
`tensor_list`
.
...
...
@@ -1995,10 +1995,18 @@ operation is feeding another input queue, its queue runner will catch
this exception, however, if this operation is used in your main thread
you are responsible for catching this yourself.
*N.B.:*
You must ensure that either (i) the
`shapes`
argument is
passed, or (ii) all of the tensors in
`tensor_list`
must have
fully-defined shapes.
`ValueError`
will be raised if neither of
these conditions holds.
*N.B.:*
If
`dynamic_pad`
is
`False`
, you must ensure that either
(i) the
`shapes`
argument is passed, or (ii) all of the tensors in
`tensor_list`
must have fully-defined shapes.
`ValueError`
will be
raised if neither of these conditions holds.
If
`dynamic_pad`
is
`True`
, it is sufficient that the
*rank*
of the
tensors is known, but individual dimensions may have shape
`None`
.
In this case, for each enqueue the dimensions with value
`None`
may have a variable length; upon dequeue, the output tensors will be padded
on the right to the maximum shape of the tensors in the current minibatch.
For numbers, this padding takes value 0. For strings, this padding is
the empty string. See
`PaddingFIFOQueue`
for more info.
##### Args:
...
...
@@ -2010,6 +2018,9 @@ these conditions holds.
*
<b>
`enqueue_many`
</b>
: Whether each tensor in
`tensor_list`
is a single example.
*
<b>
`shapes`
</b>
: (Optional) The shapes for each example. Defaults to the
inferred shapes for
`tensor_list`
.
*
<b>
`dynamic_pad`
</b>
: Boolean. Allow variable dimensions in input shapes.
The given dimensions are padded upon dequeue so that tensors within a
batch have the same shapes.
*
<b>
`shared_name`
</b>
: (optional). If set, this queue will be shared under the given
name across multiple sessions.
*
<b>
`name`
</b>
: (Optional) A name for the operations.
...
...
@@ -2027,7 +2038,7 @@ these conditions holds.
- - -
### `tf.train.batch_join(tensor_list_list, batch_size, capacity=32, enqueue_many=False, shapes=None, shared_name=None, name=None)` {#batch_join}
### `tf.train.batch_join(tensor_list_list, batch_size, capacity=32, enqueue_many=False, shapes=None,
dynamic_pad=False,
shared_name=None, name=None)` {#batch_join}
Runs a list of tensors to fill a queue to create batches of examples.
...
...
@@ -2061,10 +2072,18 @@ operation is feeding another input queue, its queue runner will catch
this exception, however, if this operation is used in your main thread
you are responsible for catching this yourself.
*N.B.:*
You must ensure that either (i) the
`shapes`
argument is
passed, or (ii) all of the tensors in
`tensor_list_list`
must have
fully-defined shapes.
`ValueError`
will be raised if neither of
these conditions holds.
*N.B.:*
If
`dynamic_pad`
is
`False`
, you must ensure that either
(i) the
`shapes`
argument is passed, or (ii) all of the tensors in
`tensor_list`
must have fully-defined shapes.
`ValueError`
will be
raised if neither of these conditions holds.
If
`dynamic_pad`
is
`True`
, it is sufficient that the
*rank*
of the
tensors is known, but individual dimensions may have value
`None`
.
In this case, for each enqueue the dimensions with value
`None`
may have a variable length; upon dequeue, the output tensors will be padded
on the right to the maximum shape of the tensors in the current minibatch.
For numbers, this padding takes value 0. For strings, this padding is
the empty string. See
`PaddingFIFOQueue`
for more info.
##### Args:
...
...
@@ -2076,6 +2095,9 @@ these conditions holds.
example.
*
<b>
`shapes`
</b>
: (Optional) The shapes for each example. Defaults to the
inferred shapes for
`tensor_list_list[i]`
.
*
<b>
`dynamic_pad`
</b>
: Boolean. Allow variable dimensions in input shapes.
The given dimensions are padded upon dequeue so that tensors within a
batch have the same shapes.
*
<b>
`shared_name`
</b>
: (Optional) If set, this queue will be shared under the given
name across multiple sessions.
*
<b>
`name`
</b>
: (Optional) A name for the operations.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录