class_docstr: Base test class for TensorFlow Lite 2.x model tests.
class_docstr_tok: ["Base","test","class","for","TensorFlow","Lite","2.x","model","tests","."]
docstr: Returns a model with only one sqrt op, to test non-quantizable op.
docstr_tok: ["Returns","a","model","with","only","one","sqrt","op",",","to","test","non-quantizable","op","."]
code: def _getSqrtModel(self):
      """Returns a model with only one sqrt op, to test non-quantizable op."""
  
      @def_function.function(
          input_signature=[
              tensor_spec.TensorSpec(
                  shape=(1, 10), dtype=dtypes.float32
              )
          ]
      )
      def sqrt(x):
          return math_ops.sqrt(x)
  
      def calibration_gen():
          for _ in range(5):
              yield [
                  np.random.uniform(0, 16, size=(1, 10)).astype(
                      np.float32
                  )
              ]
  
      return sqrt, calibration_gen
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow.lite.python.interpreter import Interpreter
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 8 for calling the ModelTest obj's underlying member method code with example usage: obj._getSqrtModel() and returns: sqrt,  calibration_gen, math_ops