information of the label files 1 in the classification
tensor.
tensor_type
data type of the tensor.
score_calibration_md
information of the score calibration files operation
2 in the classification tensor.
tensor_name
name of the corresponding tensor 3 in the TFLite model. It
is used to locate the corresponding classification tensor and decide the
order of the tensor metadata 4 when populating model metadata.
Attributes
label_files
information of the label files 1 in the classification
tensor.
score_calibration_md
information of the score calibration operation 2 in
the classification tensor.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# tflite_support.metadata_writers.metadata_info.ClassificationTensorMd\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/python/metadata_writers/metadata_info.py#L597-L674) |\n\nA container for the classification tensor metadata information.\n\nInherits From: [`TensorMd`](../../../tflite_support/metadata_writers/metadata_info/TensorMd)\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tflite_support.metadata_writers.audio_classifier.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.bert_nl_classifier.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.image_classifier.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.image_segmenter.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.nl_classifier.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.object_detector.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd), [`tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.ClassificationTensorMd`](https://www.tensorflow.org/lite/api_docs/python/tflite_support/metadata_writers/metadata_info/ClassificationTensorMd)\n\n\u003cbr /\u003e\n\n tflite_support.metadata_writers.metadata_info.ClassificationTensorMd(\n name: Optional[str] = None,\n description: Optional[str] = None,\n label_files: Optional[List[LabelFileMd]] = None,\n tensor_type: Optional[_schema_fb.TensorType] = None,\n score_calibration_md: Optional[../../../tflite_support/metadata_writers/metadata_info/ScoreCalibrationMd] = None,\n tensor_name: Optional[str] = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | name of the tensor. |\n| `description` | description of what the tensor is. |\n| `label_files` | information of the label files [1](https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95) in the classification tensor. |\n| `tensor_type` | data type of the tensor. |\n| `score_calibration_md` | information of the score calibration files operation [2](https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434) in the classification tensor. |\n| `tensor_name` | name of the corresponding tensor [3](https://github.com/tensorflow/tensorflow/blob/cb67fef35567298b40ac166b0581cd8ad68e5a3a/tensorflow/lite/schema/schema.fbs#L1129-L1136) in the TFLite model. It is used to locate the corresponding classification tensor and decide the order of the tensor metadata [4](https://github.com/tensorflow/tflite-support/blob/b2a509716a2d71dfff706468680a729cc1604cff/tensorflow_lite_support/metadata/metadata_schema.fbs#L595-L612) when populating model metadata. \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `label_files` | information of the label files [1](https://github.com/tensorflow/tflite-support/blob/b80289c4cd1224d0e1836c7654e82f070f9eefaa/tensorflow_lite_support/metadata/metadata_schema.fbs#L95) in the classification tensor. |\n| `score_calibration_md` | information of the score calibration operation [2](https://github.com/tensorflow/tflite-support/blob/5e0cdf5460788c481f5cd18aab8728ec36cf9733/tensorflow_lite_support/metadata/metadata_schema.fbs#L434) in the classification tensor. \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `create_metadata`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/python/metadata_writers/metadata_info.py#L667-L674) \n\n create_metadata() -\u003e ../../../tflite_support/metadata_schema_py_generated/TensorMetadataT\n\nCreates the classification tensor metadata based on the information."]]