diff options
author | 2018-09-23 10:11:22 -0700 | |
---|---|---|
committer | 2018-09-23 10:11:22 -0700 | |
commit | bb5fbbcb663c795dd7fc16e43a0eaaae53231fd9 (patch) | |
tree | 702f13489b23170ccf1149c01da4bdf501f5cf5a /tensorflow/core/api_def | |
parent | 7d25d2d6c5db2269b6dba4cade6edaf7e8ddf6ba (diff) | |
parent | 33f57bd1311df97a25cd70784dfaafc8e44d07c4 (diff) |
Merge pull request #21715 from hsgkim:volume_patches
PiperOrigin-RevId: 214177065
Diffstat (limited to 'tensorflow/core/api_def')
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_ExtractVolumePatches.pbtxt | 49 |
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..3c8a455983 --- /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: "input" + description: <<END +5-D Tensor with shape `[batch, in_planes, 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 patches +with size `ksize_planes 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 `input`. +END + } + attr { + name: "strides" + description: <<END +1-D of length 5. How far the centers of two consecutive patches are in +`input`. 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 `input` and put them in the "depth" output +dimension. 3D extension of `extract_image_patches`. +END +} |