class_docstr: Base test class for depthwise Conv2D tests.
class_docstr_tok: ["Base","test","class","for","depthwise","Conv2D","tests","."]
code: def testDepthwiseConv2DWithUnknownShape(self):
      # GitHub issue 22110.
      if not test.is_gpu_available():
          return
      with self.session():
          x = array_ops.placeholder(dtypes.float32)
          f = np.ones([1, 1, 1, 1], np.float32)
          v = nn_impl.depthwise_conv2d(
              x,
              f,
              [1, 1, 1, 1],
              "VALID",
              rate=[2, 1],
              data_format="NCHW",
          )
          self.assertAllEqual(
              np.ones([1, 1, 1, 1], np.float32),
              v.eval(feed_dict={x: np.ones([1, 1, 1, 1], np.float32)}),
          )
  
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 4 for calling the DepthwiseConv2DBase obj's underlying member method code with example usage: obj.testDepthwiseConv2DWithUnknownShape() without return types