class_docstr: Test determinism-related functionality of tf.nn.depthwise_conv2d.
class_docstr_tok: ["Test","determinism-related","functionality","of","tf.nn.depthwise_conv2d","."]
code: def _testForwardDeterminismCase(
      self, use_cudnn=False, data_format="NHWC", dtype=dtypes.float32
  ):
      for seed in range(5):
          p = self._genParams(use_cudnn, data_format, dtype, seed=seed)
          input_data, filter_data, strides, padding, _ = p
  
          result_a = nn_impl.depthwise_conv2d_v2(
              input_data, filter_data, strides, padding, data_format
          )
          result_b = nn_impl.depthwise_conv2d_v2(
              input_data, filter_data, strides, padding, data_format
          )
  
          self.assertAllEqual(result_a, result_b)
  
file_path: tensorflow/tensorflow/python/kernel_tests/nn_ops/depthwise_conv_op_d9m_test.py
imports: from tensorflow.python.eager import backprop
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.kernel_tests.nn_ops import depthwise_conv_op_base
  from tensorflow.python.ops import nn_impl
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops.nn_grad import _DepthwiseConv2dNativeBackpropFilterGrad
  from tensorflow.python.ops.nn_grad import _DepthwiseConv2dNativeBackpropInputGrad
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the DepthwiseConv2DDeterministicTest obj's underlying member method code with example usage: obj._testForwardDeterminismCase(use_cudnn, data_format, dtype) without return types