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 testBackwardDeterminismCPU(self):
      if tf_config.list_physical_devices("GPU"):
          self.skipTest("Test only runs when there is no GPU")
      data_format = "NHWC"  # CPU does not implement NCHW version of op
      for dtype in [
          dtypes.bfloat16.as_numpy_dtype,
          dtypes.float32,
          dtypes.float64,
      ]:
          self._testBackwardDeterminismCase(
              data_format=data_format, dtype=dtype
          )
  
file_path: tensorflow-upstream/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 7 for calling the DepthwiseConv2DDeterministicTest obj's underlying member method code with example usage: obj.testBackwardDeterminismCPU() without return types