Back to Tensorflow

tflite_model_maker.model_spec.get

tensorflow/lite/g3doc/api_docs/python/tflite_model_maker/model_spec/get.md

2.21.01.9 KB
Original Source

page_type: reference description: Gets model spec by name or instance, and init with args and kwarges.

<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_model_maker.model_spec.get" /> <meta itemprop="path" content="Stable" /> </div>

tflite_model_maker.model_spec.get

<!-- Insert buttons and diff --> <table class="tfo-notebook-buttons tfo-api nocontent" align="left"> <td> <a target="_blank" href="https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/core/task/model_spec/__init__.py#L101-L113">
View source on GitHub
</a> </td> </table>

Gets model spec by name or instance, and init with args and kwarges.

<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>tflite_model_maker.model_spec.get( spec_or_str, *args, **kwargs ) </code></pre> <h3>Used in the notebooks</h3> <table class="vertical-rules"> <thead> <tr> <th>Used in the tutorials</th> </tr> </thead> <tbody> <tr> <td> <ul> <li><a href="https://www.tensorflow.org/lite/models/modify/model_maker/text_classification">Text classification with TensorFlow Lite Model Maker</a></li> <li><a href="https://www.tensorflow.org/lite/models/modify/model_maker/question_answer">BERT Question Answer with TensorFlow Lite Model Maker</a></li> <li><a href="https://www.tensorflow.org/lite/models/modify/model_maker/image_classification">Image classification with TensorFlow Lite Model Maker</a></li> <li><a href="https://www.tensorflow.org/lite/models/modify/model_maker/object_detection">Object Detection with TensorFlow Lite Model Maker</a></li> </ul> </td> </tr> </tbody> </table>