class_docstr: Functional tests for ExtractVolumePatches op.
class_docstr_tok: ["Functional","tests","for","ExtractVolumePatches","op","."]
docstr: Tests input-output pairs for the ExtractVolumePatches op.
  
  Args:
    image: Input tensor with shape:
           [batch, in_planes, in_rows, in_cols, depth].
    ksizes: Patch size specified as: [ksize_planes, ksize_rows, ksize_cols].
    strides: Output strides, specified as:
             [stride_planes, stride_rows, stride_cols].
    padding: Padding type.
    patches: Expected output.
  
  Note:
    rates are not supported as of now.
docstr_tok: ["Tests","input-output","pairs","for","the","ExtractVolumePatches","op",".","Args",":","image",":","Input","tensor","with","shape",":","[","batch",",","in_planes",",","in_rows",",","in_cols",",","depth","]",".","ksizes",":","Patch","size","specified","as",":","[","ksize_planes",",","ksize_rows",",","ksize_cols","]",".","strides",":","Output","strides",",","specified","as",":","[","stride_planes",",","stride_rows",",","stride_cols","]",".","padding",":","Padding","type",".","patches",":","Expected","output",".","Note",":","rates","are","not","supported","as","of","now","."]
code: def _VerifyValues(self, image, ksizes, strides, padding, patches):
      """Tests input-output pairs for the ExtractVolumePatches op.
  
      Args:
        image: Input tensor with shape:
               [batch, in_planes, in_rows, in_cols, depth].
        ksizes: Patch size specified as: [ksize_planes, ksize_rows, ksize_cols].
        strides: Output strides, specified as:
                 [stride_planes, stride_rows, stride_cols].
        padding: Padding type.
        patches: Expected output.
  
      Note:
        rates are not supported as of now.
      """
      ksizes = [1] + ksizes + [1]
      strides = [1] + strides + [1]
  
      for dtype in [
          np.float16,
          np.float32,
          np.float64,
          dtypes.bfloat16.as_numpy_dtype,
      ]:
          out_tensor = array_ops.extract_volume_patches(
              constant_op.constant(image.astype(dtype)),
              ksizes=ksizes,
              strides=strides,
              padding=padding,
              name="im2col_3d",
          )
          self.assertAllClose(
              patches.astype(dtype), self.evaluate(out_tensor)
          )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/image_ops/extract_volume_patches_op_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ExtractVolumePatches obj's underlying member method code with example usage: obj._VerifyValues(image, ksizes, strides, padding, patches) without return types