# tensorflow::ops::ExtractVolumePatches Class Reference

# tensorflow::
ops::
ExtractVolumePatches

`
#include <array_ops.h>
`


Extract
`
patches
`
from
`
input
`
and put them in the
`
"depth"
`
output dimension.

## Summary


3D extension of
`
extract_image_patches
`
.


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- input: 5-D [Tensor](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) with shape `
  [batch, in_planes, in_rows, in_cols, depth]
  ` .
- ksizes: The size of the sliding window for each dimension of `
  input
  ` .
- strides: 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]
  ` .
- padding: The type of padding algorithm to use.

<br />


The size-related attributes are specified as follows:


```
ksizes = [1, ksize_planes, ksize_rows, ksize_cols, 1]
strides = [1, stride_planes, strides_rows, strides_cols, 1]
```

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` : 5-D [Tensor](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_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.

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/extract-volume-patches#classtensorflow_1_1ops_1_1_extract_volume_patches_1a752dba9a13577efb227d68e11e73e4e7 (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input input, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, StringPiece padding) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/extract-volume-patches#classtensorflow_1_1ops_1_1_extract_volume_patches_1ab7a74fc2dc2e90c7c44399f5673a6664 ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/extract-volume-patches#classtensorflow_1_1ops_1_1_extract_volume_patches_1a88a4e306f94549ed420d3e6770bf7bbc ` | ` :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/extract-volume-patches#classtensorflow_1_1ops_1_1_extract_volume_patches_1ad156203fcbe558f0a53b6c0b7f34c016 () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/extract-volume-patches#classtensorflow_1_1ops_1_1_extract_volume_patches_1ad316cf0f924cac92315f835a66c577f8 () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/extract-volume-patches#classtensorflow_1_1ops_1_1_extract_volume_patches_1a6ff00c0c8df929a77bf90a0258d87a88 () const ` | ` ` |

## Public attributes

### operation

```
Operation operation
```

### patches

```
::tensorflow::Output patches
```

## Public functions

### ExtractVolumePatches

```
 ExtractVolumePatches(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< int > & ksizes,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```