class_docstr: Tests for scale & elementwise layers in TF-TRT.
code: def GraphFn(self, x):
      for weights_shape in [
          (1,),  # scale
          (24, 1, 1),  # scale
          (24, 24, 20),  # scale
          (20,),  # elementwise
          (1, 24, 1, 1),  # elementwise
          (1, 24, 24, 1),  # elementwise
          (1, 24, 24, 20),  # elementwise
          (24, 20),  # elementwise
      ]:
          a = self._ConstOp(weights_shape)
          f = x + a
          x = self.trt_incompatible_op(f)
          a = self._ConstOp(weights_shape)
          f = a + x
          x = self.trt_incompatible_op(f)
      return gen_array_ops.reshape(x, [5, -1], name="output_0")
  
file_path: tensorflow/tensorflow/python/compiler/tensorrt/test/binary_tensor_weight_broadcast_test.py
imports: import os
  import numpy
  from tensorflow.python.compiler.tensorrt.test import tf_trt_integration_test_base
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 2 for calling the BinaryTensorWeightBroadcastTest obj's underlying member method code with example usage: obj.GraphFn(x) and returns: gen_array_ops