aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/api_def
diff options
context:
space:
mode:
authorGravatar Hoeseong Kim <hsgkim@snu.ac.kr>2018-08-20 00:41:57 +0900
committerGravatar Hoeseong Kim <hsgkim@snu.ac.kr>2018-08-20 00:41:57 +0900
commitad18b2dd923329ef598ee12b9bafd7fc63d7013d (patch)
tree8a67eaeaab83e0a8980b723e129614f17536f467 /tensorflow/core/api_def
parent3b061fce8b9a1c867f2798d51b5375ea3a03b385 (diff)
Implement extract_volume_patches
Diffstat (limited to 'tensorflow/core/api_def')
-rw-r--r--tensorflow/core/api_def/base_api/api_def_ExtractVolumePatches.pbtxt49
1 files changed, 49 insertions, 0 deletions
diff --git a/tensorflow/core/api_def/base_api/api_def_ExtractVolumePatches.pbtxt b/tensorflow/core/api_def/base_api/api_def_ExtractVolumePatches.pbtxt
new file mode 100644
index 0000000000..3499ade368
--- /dev/null
+++ b/tensorflow/core/api_def/base_api/api_def_ExtractVolumePatches.pbtxt
@@ -0,0 +1,49 @@
+op {
+ graph_op_name: "ExtractVolumePatches"
+ in_arg {
+ name: "images"
+ description: <<END
+5-D Tensor with shape `[batch, in_rows, in_cols, depth]`.
+END
+ }
+ out_arg {
+ name: "patches"
+ description: <<END
+5-D Tensor with shape `[batch, out_planes, out_rows, out_cols,
+ksize_planes * ksize_rows * ksize_cols * depth]` containing image
+patches with size `ksize_patches x ksize_rows x ksize_cols x depth`
+vectorized in the "depth" dimension. Note `out_planes`, `out_rows` and
+`out_cols` are the dimensions of the output patches.
+END
+ }
+ attr {
+ name: "ksizes"
+ description: <<END
+The size of the sliding window for each dimension of `images`.
+END
+ }
+ attr {
+ name: "strides"
+ description: <<END
+1-D of length 5. How far the centers of two consecutive patches are in
+the images. Must be: `[1, stride_planes, stride_rows, stride_cols, 1]`.
+END
+ }
+ attr {
+ name: "padding"
+ description: <<END
+The type of padding algorithm to use.
+
+We specify the size-related attributes as:
+
+```python
+ ksizes = [1, ksize_planes, ksize_rows, ksize_cols, 1]
+ strides = [1, stride_planes, strides_rows, strides_cols, 1]
+```
+END
+ }
+ summary: <<END
+Extract `patches` from `images` and put them in the \"depth\" output
+dimension. 3D extension of `extract_image_patches`.
+END
+}