class_docstr: Testing usage of quantization ranges inserted in graph.
class_docstr_tok: ["Testing","usage","of","quantization","ranges","inserted","in","graph","."]
code: def testEval(self):
      model_dir = test.test_src_dir_path(MNIST_TEST_DIR_PATH)
  
      accuracy_tf_native = self._Run(
          is_training=False,
          use_trt=False,
          batch_size=128,
          num_epochs=None,
          model_dir=model_dir,
      )["accuracy"]
      logging.info("accuracy_tf_native: %f", accuracy_tf_native)
      self.assertAllClose(
          0.9662, accuracy_tf_native, rtol=3e-3, atol=3e-3
      )
  
      accuracy_tf_trt = self._Run(
          is_training=False,
          use_trt=True,
          batch_size=128,
          num_epochs=None,
          model_dir=model_dir,
      )["accuracy"]
      logging.info("accuracy_tf_trt: %f", accuracy_tf_trt)
      self.assertAllClose(0.9675, accuracy_tf_trt, rtol=1e-3, atol=1e-3)
  
imports: import os.path
  import tempfile
  import tensorflow_datasets
  from tensorflow.compiler.tf2tensorrt._pywrap_py_utils import is_tensorrt_enabled
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.compiler.tensorrt import trt_convert
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.estimator.estimator import Estimator
  from tensorflow.python.estimator.model_fn import EstimatorSpec
  from tensorflow.python.estimator.model_fn import ModeKeys
  from tensorflow.python.estimator.run_config import RunConfig
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import importer
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.keras.metrics import Accuracy
  from tensorflow.python.layers import layers
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import metrics
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops.losses import losses
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import builder
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model import tag_constants
  from tensorflow.python.saved_model import utils
  from tensorflow.python.saved_model import signature_def_utils
  from tensorflow.python.saved_model.load import load
  from tensorflow.python.summary import summary
  from tensorflow.python.training import saver
  from tensorflow.python.training.adam import AdamOptimizer
  from tensorflow.python.training.checkpoint_management import latest_checkpoint
  from tensorflow.python.training.training_util import get_global_step
label_desc: Use image node_id 5 for calling the QuantizationAwareTrainingMNISTTest obj's underlying member method code with example usage: obj.testEval() without return types