class_docstr: Tests cast to FP32 are splitted in FP16 mode.
class_docstr_tok: ["Tests","cast","to","FP32","are","splitted","in","FP16","mode","."]
code: def GraphFn(self, x):
      b_f = self._ConstOp((1, 10), dtypes.float16)
      x_f = math_ops.cast(x, dtypes.float16)
      x_f = math_ops.mul(x_f, b_f)  # FP16 Multiply
  
      x_f = math_ops.cast(x_f, dtypes.float32)
      b_f = self._ConstOp((1, 10), dtypes.float32)
      x_f = math_ops.add(x_f, b_f)  # FP32 Add
  
      return array_ops.identity(x_f, name="output_0")
  
file_path: tensorflow/tensorflow/python/compiler/tensorrt/test/cast_test.py
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 math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the CastInt32ToFp32Test obj's underlying member method code with example usage: obj.GraphFn(x) and returns: array_ops