docstr: Create a graph containing multiple segment.
docstr_tok: ["Create","a","graph","containing","multiple","segment","."]
code: def GraphFn(self, inp):
      """Create a graph containing multiple segment."""
      dtype = inp.dtype
      conv_filter = constant_op.constant(
          [
              [
                  [
                      [1.0, 0.5, 4.0, 6.0, 0.5, 1.0],
                      [1.0, 0.5, 1.0, 1.0, 0.5, 1.0],
                  ]
              ]
          ],
          name="weights",
          dtype=dtype,
      )
      conv = nn.conv2d(
          input=inp,
          filter=conv_filter,
          strides=[1, 2, 2, 1],
          padding="SAME",
          name="conv",
      )
      c1 = constant_op.constant(
          np.random.randn(12, 12, 6), dtype=dtype, name="c1"
      )
      p = math_ops.mul(conv, c1, name="mul")
      c2 = constant_op.constant(
          np.random.randn(12, 12, 6), dtype=dtype, name="c2"
      )
      q = math_ops.div(conv, c2, name="div")
  
      edge = self.trt_incompatible_op(q, name="incompatible")
      one = constant_op.constant(1, name="one", dtype=dtype)
      edge = math_ops.sub(one, edge, name="one_sub")
      edge = math_ops.div(edge, edge, name="div1")
      r = math_ops.add(edge, edge, name="add")
  
      p = math_ops.sub(p, edge, name="sub")
      q = math_ops.mul(q, edge, name="mul1")
      s = math_ops.add(p, q, name="add1")
      s = math_ops.sub(s, r, name="sub1")
      return array_ops.squeeze(s, name="output_0")
  
imports: import numpy
  from tensorflow.python.compiler.tensorrt import utils
  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.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SimpleMultiEnginesTest obj's underlying member method code with example usage: obj.GraphFn(inp) and returns: array_ops