code: def testInplaceOpOnEmptyTensors(self):
      op_fns = [
          inplace_ops.inplace_add,
          inplace_ops.inplace_sub,
          inplace_ops.inplace_update,
      ]
      for dtype in BASIC_TYPES:
          for op_fn in op_fns:
              with test_util.use_gpu():
                  x = array_ops.zeros([7, 0], dtype)
                  y = np.zeros([7, 0], dtype.as_numpy_dtype)
                  self.assertAllClose(x, y)
                  x = op_fn(x, [3], array_ops.ones([1, 0], dtype))
                  self.assertAllClose(x, y)
                  x = op_fn(x, None, array_ops.ones([1, 0], dtype))
                  self.assertAllClose(x, y)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/array_ops/inplace_ops_test.py
imports: import numpy
  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 inplace_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the InplaceOpsTest obj's underlying member method code with example usage: obj.testInplaceOpOnEmptyTensors() without return types