class_docstr: Testing conversion of conv2d_transpose (AKA Conv2DBackpropInput)
class_docstr_tok: ["Testing","conversion","of","conv2d_transpose","(","AKA","Conv2DBackpropInput",")"]
code: def GraphFn(self, inp):
      np.random.seed(1234)
      dtype = inp.dtype
      n, c, h, w = 13, 3, 7, 11
      num_filters = 8
      weights_shape = [2, 2, num_filters, c]
      weights = constant_op.constant(
          np.random.randn(*weights_shape), dtype=dtype
      )
      output_shape = constant_op.constant(
          [n, num_filters, h * 2, w * 2], dtype=dtypes.int32
      )
      output = nn_ops.conv2d_transpose(
          inp,
          weights,
          output_shape,
          strides=[1, 1, 2, 2],
          padding="SAME",
          data_format="NCHW",
      )
      return array_ops.identity(output, name="output_0")
  
imports: import numpy
  from tensorflow.python.compiler.tensorrt.test import tf_trt_integration_test_base
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the Conv2DTranposeTest obj's underlying member method code with example usage: obj.GraphFn(inp) and returns: array_ops