class_docstr: Base test class for depthwise Conv2D tests.
class_docstr_tok: ["Base","test","class","for","depthwise","Conv2D","tests","."]
code: def testDepthwiseConv2DInputGradExplicit(self):
      for index, (
          input_size,
          filter_size,
          output_size,
          stride,
          padding,
          dilations,
      ) in enumerate(CheckGradConfigsToTestExplicit()):
          tf_logging.info(
              "Testing DepthwiseConv2DInputGradExplicit, %dth config: %r * %r, "
              "stride: %d, padding: %s",
              index,
              input_size,
              filter_size,
              stride,
              padding,
          )
          # double datatype is currently not supported for convolution ops
          # on the ROCm platform
          data_types = [dtypes.float16, dtypes.float32, dtypes.bfloat16]
          if not test.is_built_with_rocm():
              data_types.extend([dtypes.float64])
          data_formats = (
              ["NHWC", "NCHW"] if test.is_gpu_available() else ["NHWC"]
          )
          for data_type in data_types:
              for data_format in data_formats:
                  self._ConstructAndTestGradient(
                      input_size,
                      filter_size,
                      output_size,
                      stride,
                      padding,
                      data_type,
                      test_input=True,
                      use_gpu=True,
                      data_format=data_format,
                      dilations=dilations,
                  )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import nn_impl
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 13 for calling the DepthwiseConv2DBase obj's underlying member method code with example usage: obj.testDepthwiseConv2DInputGradExplicit() without return types