class_docstr: Converts TensorFlow flatbuffer models from old to new version of schema.
  
  This can convert between any version to the latest version. It uses
  an incremental upgrade strategy to go from version to version.
  
  Usage:
    converter = Converter()
    converter.Convert("a.tflite", "a.json")
    converter.Convert("b.json", "b.tflite")
class_docstr_tok: ["Converts","TensorFlow","flatbuffer","models","from","old","to","new","version","of","schema",".","This","can","convert","between","any","version","to","the","latest","version",".","It","uses","an","incremental","upgrade","strategy","to","go","from","version","to","version",".","Usage",":","converter","=","Converter","(",")","converter.Convert","(","``","a.tflite","''",",","``","a.json","''",")","converter.Convert","(","``","b.json","''",",","``","b.tflite","''",")"]
docstr: Manipulate the `data` (parsed JSON) based on changes in format.
  
  This incrementally will upgrade from version to version within data.
  
  Args:
    data: Dictionary representing the TensorFlow data. This will be upgraded
      in place.
docstr_tok: ["Manipulate","the","`","data","`","(","parsed","JSON",")","based","on","changes","in","format",".","This","incrementally","will","upgrade","from","version","to","version","within","data",".","Args",":","data",":","Dictionary","representing","the","TensorFlow","data",".","This","will","be","upgraded","in","place","."]
code: def _PerformUpgrade(self, data):
      """Manipulate the `data` (parsed JSON) based on changes in format.
  
      This incrementally will upgrade from version to version within data.
  
      Args:
        data: Dictionary representing the TensorFlow data. This will be upgraded
          in place.
      """
      while data["version"] < self._new_version:
          self._upgrade_dispatch[data["version"]](data)
          data["version"] += 1
  
imports: import argparse
  import contextlib
  import json
  import os
  import shutil
  import subprocess
  import sys
  import tempfile
  import tensorflow
  from tensorflow.python.platform import resource_loader
label_desc: Use image node_id 7 for calling the Converter obj's underlying member method code with example usage: obj._PerformUpgrade(data) without return types