Back to Tensorflow

Module: tflite_support.metadata

tensorflow/lite/g3doc/api_docs/python/tflite_support/metadata.md

2.21.01.5 KB
Original Source

page_type: reference description: TensorFlow Lite metadata tools.

<link rel="stylesheet" href="/site-assets/css/style.css"> <!-- DO NOT EDIT! Automatically generated file. --> <div itemscope itemtype="http://developers.google.com/ReferenceObject"> <meta itemprop="name" content="tflite_support.metadata" /> <meta itemprop="path" content="Stable" /> </div>

Module: tflite_support.metadata

<!-- Insert buttons and diff --> <table class="tfo-notebook-buttons tfo-api nocontent" align="left"> <td> <a target="_blank" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/python/metadata.py">
View source on GitHub
</a> </td> </table>

TensorFlow Lite metadata tools.

Classes

class MetadataDisplayer: Displays metadata and associated file info in human-readable format.

class MetadataPopulator: Packs metadata and associated files into TensorFlow Lite model file.

Functions

convert_to_json(...): Converts the metadata into a json string.

get_metadata_buffer(...): Returns the metadata in the model file as a buffer.

get_path_to_datafile(...): Gets the path to the specified file in the data dependencies.