class_docstr: The driver to run all sample models in all specified configurations.
class_docstr_tok: ["The","driver","to","run","all","sample","models","in","all","specified","configurations","."]
docstr: Runs tests for all TensorRT precisions.
docstr_tok: ["Runs","tests","for","all","TensorRT","precisions","."]
code: def run_trt_precision_tests(self) -> None:
      """Runs tests for all TensorRT precisions."""
  
      def trt_converter_params_updater(params: trt.TrtConversionParams):
          for precision_mode in self._precision_modes:
              yield params._replace(
                  precision_mode=precision_mode,
                  use_calibration=(
                      precision_mode == trt.TrtPrecisionMode.INT8
                  ),
              )
  
      self._run_impl(
          test_name="precision_mode_test",
          default_trt_converter_params=DEFAUL_TRT_CONVERT_PARAMS,
          trt_converter_params_updater=trt_converter_params_updater,
      )
  
imports: import functools
  import os
  import tempfile
  from typing import Callable, Iterable, Sequence
  from collections import namedtuple
  from absl import app
  from absl import flags
  from tensorflow.python.compiler.tensorrt import trt_convert
  from tensorflow.python.compiler.tensorrt.model_tests import model_handler
  from tensorflow.python.compiler.tensorrt.model_tests import result_analyzer
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model import tag_constants
label_desc: Use image node_id 4 for calling the SampleRunner obj's underlying member method code with example usage: obj.run_trt_precision_tests() without return types