class_docstr: Test shape value output with TF-TRT.
class_docstr_tok: ["Test","shape","value","output","with","TF-TRT","."]
code: def GraphFn(self, x):
      # The first engine returns the shape of q, which equals the shape of x. The
      # values of x are actually not needed for the TRT engine. This way x is
      # neither a shape tensor nor an execution tensor, we still need to set its
      # shape (binding dimensions). We confirm with this test that the binding
      # dimensions of x are correctly set before we execute the engine.
      q = 2 * x + 1
      q = array_ops.shape(q)
      q = math_ops.cast(q, dtypes.float32)
      q = self.trt_incompatible_op(q)
      q = q * 2 + q * q
      return array_ops.identity(q, name="output_0")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from tensorflow.python.compiler.tensorrt.test import tf_trt_integration_test_base
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the ShapeOutputTest obj's underlying member method code with example usage: obj.GraphFn(x) and returns: array_ops