class_docstr: Base test class for depthwise Conv2D tests.
class_docstr_tok: ["Base","test","class","for","depthwise","Conv2D","tests","."]
code: def testDepthwiseConv2DForwardCompare(self):
      for index, (
          input_size,
          filter_size,
          output_size,
          stride,
          padding,
          dilations,
      ) in enumerate(ConfigsToTest()):
          if dilations:
              continue
          tf_logging.info(
              "Testing DepthwiseConv2DForwardCompare, %dth config: %r * %r, "
              "stride: %d, padding: %s",
              index,
              input_size,
              filter_size,
              stride,
              padding,
          )
          self._CompareForward(
              input_size,
              filter_size,
              output_size,
              stride,
              padding,
              "float32",
          )
          self._CompareForward(
              input_size,
              filter_size,
              output_size,
              stride,
              padding,
              "bfloat16",
          )
  
          # Convolutions on the ROCm platform don't support double dtype.
          if not test.is_built_with_rocm():
              self._CompareForward(
                  input_size,
                  filter_size,
                  output_size,
                  stride,
                  padding,
                  "float64",
              )
  
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 25 for calling the DepthwiseConv2DBase obj's underlying member method code with example usage: obj.testDepthwiseConv2DForwardCompare() without return types