class_docstr: A decorator class to check TFLite compatibility created by `lite.experimental.authoring.compatible`.
class_docstr_tok: ["A","decorator","class","to","check","TFLite","compatibility","created","by","`","lite.experimental.authoring.compatible","`","."]
docstr: Initialize the decorator object.
  
  Here is the description of the object variables.
  - _func     : decorated function.
  - _obj_func : for class object, we need to use this object to provide `self`
                instance as 1 first argument.
  - _verified : whether the compatibility is checked or not.
  
  Args:
    target: decorated function.
    converter_target_spec : target_spec of TFLite converter parameter.
    converter_allow_custom_ops : allow_custom_ops of TFLite converter
        parameter.
    raise_exception : to raise an exception on compatibility issues.
        User need to use get_compatibility_log() to check details.
docstr_tok: ["Initialize","the","decorator","object",".","Here","is","the","description","of","the","object","variables",".","-","_func",":","decorated","function",".","-","_obj_func",":","for","class","object",",","we","need","to","use","this","object","to","provide","`","self","`","instance","as","1","first","argument",".","-","_verified",":","whether","the","compatibility","is","checked","or","not",".","Args",":","target",":","decorated","function",".","converter_target_spec",":","target_spec","of","TFLite","converter","parameter",".","converter_allow_custom_ops",":","allow_custom_ops","of","TFLite","converter","parameter",".","raise_exception",":","to","raise","an","exception","on","compatibility","issues",".","User","need","to","use","get_compatibility_log","(",")","to","check","details","."]
code: def __init__(
      self,
      target,
      converter_target_spec=None,
      converter_allow_custom_ops=None,
      raise_exception=False,
  ):
      """Initialize the decorator object.
  
      Here is the description of the object variables.
      - _func     : decorated function.
      - _obj_func : for class object, we need to use this object to provide `self`
                    instance as 1 first argument.
      - _verified : whether the compatibility is checked or not.
  
      Args:
        target: decorated function.
        converter_target_spec : target_spec of TFLite converter parameter.
        converter_allow_custom_ops : allow_custom_ops of TFLite converter
            parameter.
        raise_exception : to raise an exception on compatibility issues.
            User need to use get_compatibility_log() to check details.
      """
      functools.update_wrapper(self, target)
      self._func = target
      self._obj_func = None
      self._verified = False
      self._log_messages = []
      self._raise_exception = raise_exception
      self._converter_target_spec = converter_target_spec
      self._converter_allow_custom_ops = converter_allow_custom_ops
  
imports: import functools
  from tensorflow.lite.python import convert
  from tensorflow.lite.python import lite
  from tensorflow.lite.python.metrics import converter_error_data_pb2
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new _Compatible object  with example: obj = _Compatible(target, converter_target_spec, converter_allow_custom_ops, raise_exception)