TensorFlow
Install Learn
  • Introduction
    New to TensorFlow?
  • TensorFlow
    The core open source ML library
  • For JavaScript
    TensorFlow.js for ML using JavaScript
  • For Mobile & Edge
    TensorFlow Lite for mobile and edge devices
  • For Production
    TensorFlow Extended for end-to-end ML components
API
  • TensorFlow (v2.12.0)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
Resources
  • Models & datasets
    Pre-trained models and datasets built by Google and the community
  • Tools
    Ecosystem of tools to help you use TensorFlow
  • Libraries & extensions
    Libraries and extensions built on TensorFlow
  • TensorFlow Certificate program
    Differentiate yourself by demonstrating your ML proficiency
  • Learn ML
    Educational resources to learn the fundamentals of ML with TensorFlow
  • Responsible AI
    Resources and tools to integrate Responsible AI practices into your ML workflow
Community
  • Join
    Explore ways to get involved
  • Blog
    Stay up to date with all things TensorFlow
  • Forum ↗
    Discussion platform for the TensorFlow community
  • Groups
    User groups, interest groups and mailing lists
  • Contribute
    Guide for contributing to code and documentation
Why TensorFlow
  • About
  • Case studies
  • English
  • Bahasa Indonesia
  • Español – América Latina
  • Français
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 日本語
  • 한국어
GitHub
  • For Mobile & Edge
Overview Guide Android iOS Other Edge Models Examples API
TensorFlow
  • Install
  • Learn
    • More
    • Overview
    • Guide
    • Android
    • iOS
    • Other Edge
    • Models
    • Examples
    • API
  • API
    • More
  • Resources
    • More
  • Community
    • More
  • Why TensorFlow
    • More
  • GitHub
  • API Reference
  • Python
    • tf.lite
      • Overview
      • Interpreter
      • OpsSet
      • Optimize
      • RepresentativeDataset
      • TFLiteConverter
      • TargetSpec
      • experimental
        • Overview
        • Analyzer
        • OpResolverType
        • QuantizationDebugOptions
        • QuantizationDebugger
        • load_delegate
        • authoring
          • Overview
          • compatible
    • tflite_model_maker
      • Overview
      • audio_classifier
        • Overview
        • AudioClassifier
        • BrowserFftSpec
        • DataLoader
        • YamNetSpec
        • create
      • config
        • Overview
        • ExportFormat
        • QuantizationConfig
      • image_classifier
        • Overview
        • DataLoader
        • EfficientNetLite0Spec
        • EfficientNetLite1Spec
        • EfficientNetLite2Spec
        • EfficientNetLite3Spec
        • EfficientNetLite4Spec
        • ImageClassifier
        • MobileNetV2Spec
        • ModelSpec
        • Resnet50Spec
        • create
      • model_spec
        • Overview
        • get
      • object_detector
        • Overview
        • DataLoader
        • EfficientDetLite0Spec
        • EfficientDetLite1Spec
        • EfficientDetLite2Spec
        • EfficientDetLite3Spec
        • EfficientDetLite4Spec
        • EfficientDetSpec
        • ObjectDetector
        • create
      • question_answer
        • Overview
        • BertQaSpec
        • DataLoader
        • MobileBertQaSpec
        • MobileBertQaSquadSpec
        • QuestionAnswer
        • create
      • recommendation
        • Overview
        • DataLoader
        • ModelSpec
        • Recommendation
        • create
        • spec
          • Overview
          • Feature
          • FeatureGroup
          • InputSpec
          • ModelHParams
      • searcher
        • Overview
        • DataLoader
        • ExportFormat
        • ImageDataLoader
        • MetadataType
        • ScaNNOptions
        • ScoreAH
        • ScoreBruteForce
        • Searcher
        • TextDataLoader
        • Tree
      • text_classifier
        • Overview
        • AverageWordVecSpec
        • BertClassifierSpec
        • DataLoader
        • MobileBertClassifierSpec
        • TextClassifier
        • create
    • tflite_support
      • Overview
      • metadata
        • Overview
        • MetadataDisplayer
        • MetadataPopulator
        • convert_to_json
        • get_metadata_buffer
        • get_path_to_datafile
      • metadata_schema_py_generated
        • Overview
        • AssociatedFile
        • AssociatedFileAddDescription
        • AssociatedFileAddLocale
        • AssociatedFileAddName
        • AssociatedFileAddType
        • AssociatedFileAddVersion
        • AssociatedFileEnd
        • AssociatedFileStart
        • AssociatedFileT
        • AssociatedFileType
        • AudioProperties
        • AudioPropertiesAddChannels
        • AudioPropertiesAddSampleRate
        • AudioPropertiesEnd
        • AudioPropertiesStart
        • AudioPropertiesT
        • BertTokenizerOptions
        • BertTokenizerOptionsAddVocabFile
        • BertTokenizerOptionsEnd
        • BertTokenizerOptionsStart
        • BertTokenizerOptionsStartVocabFileVector
        • BertTokenizerOptionsT
        • BoundingBoxProperties
        • BoundingBoxPropertiesAddCoordinateType
        • BoundingBoxPropertiesAddIndex
        • BoundingBoxPropertiesAddType
        • BoundingBoxPropertiesEnd
        • BoundingBoxPropertiesStart
        • BoundingBoxPropertiesStartIndexVector
        • BoundingBoxPropertiesT
        • BoundingBoxType
        • ColorSpaceType
        • Content
        • ContentAddContentProperties
        • ContentAddContentPropertiesType
        • ContentAddRange
        • ContentEnd
        • ContentProperties
        • ContentPropertiesCreator
        • ContentStart
        • ContentT
        • CoordinateType
        • FeatureProperties
        • FeaturePropertiesEnd
        • FeaturePropertiesStart
        • FeaturePropertiesT
        • ImageProperties
        • ImagePropertiesAddColorSpace
        • ImagePropertiesAddDefaultSize
        • ImagePropertiesEnd
        • ImagePropertiesStart
        • ImagePropertiesT
        • ImageSize
        • ImageSizeAddHeight
        • ImageSizeAddWidth
        • ImageSizeEnd
        • ImageSizeStart
        • ImageSizeT
        • ModelMetadata
        • ModelMetadataAddAssociatedFiles
        • ModelMetadataAddAuthor
        • ModelMetadataAddDescription
        • ModelMetadataAddLicense
        • ModelMetadataAddMinParserVersion
        • ModelMetadataAddName
        • ModelMetadataAddSubgraphMetadata
        • ModelMetadataAddVersion
        • ModelMetadataEnd
        • ModelMetadataStart
        • ModelMetadataStartAssociatedFilesVector
        • ModelMetadataStartSubgraphMetadataVector
        • ModelMetadataT
        • NormalizationOptions
        • NormalizationOptionsAddMean
        • NormalizationOptionsAddStd
        • NormalizationOptionsEnd
        • NormalizationOptionsStart
        • NormalizationOptionsStartMeanVector
        • NormalizationOptionsStartStdVector
        • NormalizationOptionsT
        • ProcessUnit
        • ProcessUnitAddOptions
        • ProcessUnitAddOptionsType
        • ProcessUnitEnd
        • ProcessUnitOptions
        • ProcessUnitOptionsCreator
        • ProcessUnitStart
        • ProcessUnitT
        • RegexTokenizerOptions
        • RegexTokenizerOptionsAddDelimRegexPattern
        • RegexTokenizerOptionsAddVocabFile
        • RegexTokenizerOptionsEnd
        • RegexTokenizerOptionsStart
        • RegexTokenizerOptionsStartVocabFileVector
        • RegexTokenizerOptionsT
        • ScoreCalibrationOptions
        • ScoreCalibrationOptionsAddDefaultScore
        • ScoreCalibrationOptionsAddScoreTransformation
        • ScoreCalibrationOptionsEnd
        • ScoreCalibrationOptionsStart
        • ScoreCalibrationOptionsT
        • ScoreThresholdingOptions
        • ScoreThresholdingOptionsAddGlobalScoreThreshold
        • ScoreThresholdingOptionsEnd
        • ScoreThresholdingOptionsStart
        • ScoreThresholdingOptionsT
        • ScoreTransformationType
        • SentencePieceTokenizerOptions
        • SentencePieceTokenizerOptionsAddSentencePieceModel
        • SentencePieceTokenizerOptionsAddVocabFile
        • SentencePieceTokenizerOptionsEnd
        • SentencePieceTokenizerOptionsStart
        • SentencePieceTokenizerOptionsStartSentencePieceModelVector
        • SentencePieceTokenizerOptionsStartVocabFileVector
        • SentencePieceTokenizerOptionsT
        • Stats
        • StatsAddMax
        • StatsAddMin
        • StatsEnd
        • StatsStart
        • StatsStartMaxVector
        • StatsStartMinVector
        • StatsT
        • SubGraphMetadata
        • SubGraphMetadataAddAssociatedFiles
        • SubGraphMetadataAddDescription
        • SubGraphMetadataAddInputProcessUnits
        • SubGraphMetadataAddInputTensorGroups
        • SubGraphMetadataAddInputTensorMetadata
        • SubGraphMetadataAddName
        • SubGraphMetadataAddOutputProcessUnits
        • SubGraphMetadataAddOutputTensorGroups
        • SubGraphMetadataAddOutputTensorMetadata
        • SubGraphMetadataEnd
        • SubGraphMetadataStart
        • SubGraphMetadataStartAssociatedFilesVector
        • SubGraphMetadataStartInputProcessUnitsVector
        • SubGraphMetadataStartInputTensorGroupsVector
        • SubGraphMetadataStartInputTensorMetadataVector
        • SubGraphMetadataStartOutputProcessUnitsVector
        • SubGraphMetadataStartOutputTensorGroupsVector
        • SubGraphMetadataStartOutputTensorMetadataVector
        • SubGraphMetadataT
        • TensorGroup
        • TensorGroupAddName
        • TensorGroupAddTensorNames
        • TensorGroupEnd
        • TensorGroupStart
        • TensorGroupStartTensorNamesVector
        • TensorGroupT
        • TensorMetadata
        • TensorMetadataAddAssociatedFiles
        • TensorMetadataAddContent
        • TensorMetadataAddDescription
        • TensorMetadataAddDimensionNames
        • TensorMetadataAddName
        • TensorMetadataAddProcessUnits
        • TensorMetadataAddStats
        • TensorMetadataEnd
        • TensorMetadataStart
        • TensorMetadataStartAssociatedFilesVector
        • TensorMetadataStartDimensionNamesVector
        • TensorMetadataStartProcessUnitsVector
        • TensorMetadataT
        • ValueRange
        • ValueRangeAddMax
        • ValueRangeAddMin
        • ValueRangeEnd
        • ValueRangeStart
        • ValueRangeT
        • import_numpy
      • metadata_writers
        • Overview
        • audio_classifier
          • Overview
          • MetadataWriter
          • metadata_writer
            • Overview
            • MetadataWriter
        • bert_nl_classifier
          • Overview
          • MetadataWriter
        • image_classifier
          • Overview
          • MetadataWriter
        • image_segmenter
          • Overview
          • MetadataWriter
        • metadata_info
          • Overview
          • AssociatedFileMd
          • BertInputTensorsMd
          • BertTokenizerMd
          • CategoryTensorMd
          • ClassificationTensorMd
          • GeneralMd
          • InputAudioTensorMd
          • InputImageTensorMd
          • InputTextTensorMd
          • LabelFileMd
          • RegexTokenizerMd
          • ScoreCalibrationMd
          • SentencePieceTokenizerMd
          • TensorMd
        • nl_classifier
          • Overview
          • MetadataWriter
        • object_detector
          • Overview
          • MetadataWriter
        • writer_utils
          • Overview
          • compute_flat_size
          • get_input_tensor_names
          • get_input_tensor_shape
          • get_input_tensor_types
          • get_output_tensor_names
          • get_output_tensor_types
          • get_tokenizer_associated_files
          • load_file
          • save_file
      • task
        • Overview
        • audio
          • Overview
          • AudioClassifier
          • AudioClassifierOptions
          • AudioEmbedder
          • AudioEmbedderOptions
          • AudioFormat
          • AudioRecord
          • TensorAudio
        • core
          • Overview
          • BaseOptions
        • processor
          • Overview
          • BertCluAnnotationOptions
          • BoundingBox
          • CategoricalSlot
          • Category
          • ClassificationOptions
          • ClassificationResult
          • Classifications
          • CluRequest
          • CluResponse
          • ColoredLabel
          • ConfidenceMask
          • Detection
          • DetectionOptions
          • DetectionResult
          • Embedding
          • EmbeddingOptions
          • EmbeddingResult
          • FeatureVector
          • Mention
          • MentionedSlot
          • NearestNeighbor
          • OutputType
          • Pos
          • QaAnswer
          • QuestionAnswererResult
          • SearchOptions
          • SearchResult
          • Segmentation
          • SegmentationOptions
          • SegmentationResult
        • text
          • Overview
          • BertCluAnnotator
          • BertCluAnnotatorOptions
          • BertNLClassifier
          • BertNLClassifierOptions
          • BertQuestionAnswerer
          • BertQuestionAnswererOptions
          • NLClassifier
          • NLClassifierOptions
          • TextEmbedder
          • TextEmbedderOptions
          • TextSearcher
          • TextSearcherOptions
        • vision
          • Overview
          • ImageClassifier
          • ImageClassifierOptions
          • ImageEmbedder
          • ImageEmbedderOptions
          • ImageSearcher
          • ImageSearcherOptions
          • ImageSegmenter
          • ImageSegmenterOptions
          • ObjectDetector
          • ObjectDetectorOptions
          • TensorImage
  • Android (Java)
    • Core
    • org.tensorflow.lite
      • Overview
      • DataType
      • Delegate
      • DelegateFactory
      • Interpreter
        • Overview
        • Options
      • InterpreterApi
        • Overview
        • InterpreterApi.Options
          • Overview
          • TfLiteRuntime
      • InterpreterFactory
      • RuntimeFlavor
      • Tensor
        • Overview
        • QuantizationParams
      • TensorFlowLite
    • acceleration
    • acceleration
      • Overview
      • ValidatedAccelerationConfig
    • Support Library
    • support.audio
      • Overview
      • TensorAudio
        • Overview
        • TensorAudio.TensorAudioFormat
          • Overview
          • Builder
    • support.common
      • Overview
      • FileUtil
      • Operator
      • Processor
      • SequentialProcessor
      • TensorOperator
      • TensorProcessor
        • Overview
        • Builder
    • support.common.ops
      • Overview
      • CastOp
      • DequantizeOp
      • NormalizeOp
      • QuantizeOp
    • support.image
      • Overview
      • BoundingBoxUtil
        • Overview
        • CoordinateType
        • Type
      • ColorSpaceType
      • ImageOperator
      • ImageProcessor
        • Overview
        • Builder
      • ImageProperties
        • Overview
        • Builder
      • MlImageAdapter
      • TensorImage
    • support.image.ops
      • Overview
      • ResizeOp
        • Overview
        • ResizeMethod
      • ResizeWithCropOrPadOp
      • Rot90Op
      • TensorOperatorWrapper
      • TransformToGrayscaleOp
    • support.label
      • Overview
      • Category
      • LabelUtil
      • TensorLabel
    • support.label.ops
      • Overview
      • LabelAxisOp
        • Overview
        • Builder
    • support.metadata
      • Overview
      • MetadataExtractor
        • Overview
        • QuantizationParams
      • MetadataParser
    • support.model
      • Overview
      • Model
        • Overview
        • Builder
        • Device
        • Model.Options
          • Overview
          • Builder
    • support.tensorbuffer
      • Overview
      • TensorBuffer
      • TensorBufferFloat
      • TensorBufferUint8
    • Task Library (Play Services)
    • task.gms.audio
      • Overview
      • TfLiteAudio
    • task.gms.text
      • Overview
      • TfLiteText
    • task.gms.vision
      • Overview
      • TfLiteVision
    • Task Library
    • task.audio.classifier
      • Overview
      • AudioClassifier
        • Overview
        • AudioClassifier.AudioClassifierOptions
          • Overview
          • Builder
      • Classifications
    • task.core
      • Overview
      • BaseOptions
        • Overview
        • Builder
      • BaseTaskApi
      • ComputeSettings
        • Overview
        • Builder
        • Delegate
      • TaskJniUtils
        • Overview
        • EmptyHandleProvider
        • FdAndOptionsHandleProvider
        • MultipleBuffersHandleProvider
    • task.core.vision
      • Overview
      • ImageProcessingOptions
        • Overview
        • Builder
        • Orientation
    • task.processor
      • Overview
      • NearestNeighbor
      • SearcherOptions
        • Overview
        • Builder
    • task.text.bertclu
      • Overview
      • BertCluAnnotator
        • Overview
        • BertCluAnnotator.BertCluAnnotatorOptions
          • Overview
          • Builder
      • CluRequest
      • CluResponse
        • Overview
        • CategoricalSlot
        • Mention
        • MentionedSlot
    • task.text.nlclassifier
      • Overview
      • BertNLClassifier
        • Overview
        • BertNLClassifier.BertNLClassifierOptions
          • Overview
          • Builder
      • NLClassifier
        • Overview
        • NLClassifier.NLClassifierOptions
          • Overview
          • Builder
    • task.text.qa
      • Overview
      • BertQuestionAnswerer
        • Overview
        • BertQuestionAnswerer.BertQuestionAnswererOptions
          • Overview
          • Builder
      • QaAnswer
        • Overview
        • Pos
      • QuestionAnswerer
    • task.text.searcher
      • Overview
      • TextSearcher
        • Overview
        • TextSearcher.TextSearcherOptions
          • Overview
          • Builder
    • task.vision.classifier
      • Overview
      • Classifications
      • ImageClassifier
        • Overview
        • ImageClassifier.ImageClassifierOptions
          • Overview
          • Builder
    • task.vision.core
      • Overview
      • BaseVisionTaskApi
        • Overview
        • InferenceProvider
    • task.vision.detector
      • Overview
      • Detection
      • ObjectDetector
        • Overview
        • ObjectDetector.ObjectDetectorOptions
          • Overview
          • Builder
    • task.vision.searcher
      • Overview
      • ImageSearcher
        • Overview
        • ImageSearcher.ImageSearcherOptions
          • Overview
          • Builder
    • task.vision.segmenter
      • Overview
      • ColoredLabel
      • ImageSegmenter
        • Overview
        • ImageSegmenter.ImageSegmenterOptions
          • Overview
          • Builder
      • OutputType
      • Segmentation
    • Delegates
    • gpu
      • Overview
      • CompatibilityList
      • GpuDelegate
        • Overview
        • Options
      • GpuDelegateFactory
        • Overview
        • GpuDelegateFactory.Options
          • Overview
          • GpuBackend
    • ODML
    • image
      • Overview
      • BitmapExtractor
      • BitmapMlImageBuilder
      • ByteBufferExtractor
      • ByteBufferMlImageBuilder
      • ImageProperties
      • MediaImageExtractor
      • MediaMlImageBuilder
      • MlImage
        • Overview
        • ImageFormat
        • Internal
        • StorageType
    • image.annotation
      • Overview
      • KeepForSdk
  • Swift
    • TensorFlowLiteSwift
      • Classes
        • Overview
        • CoreMLDelegate
        • – EnabledDevices
        • – Options
        • Interpreter
        • – Options
        • MetalDelegate
        • – Options
      • Enumerations
        • Overview
        • InterpreterError
        • Runtime
        • ThreadWaitType
      • Protocols
        • Overview
        • Delegate
      • Structures
        • Overview
        • QuantizationParameters
        • Tensor
        • – DataType
        • – Shape
      • Type Aliases
        • Overview
        • InterpreterOptions
  • C++
    • Overview
    • tflite
      • Overview
      • Classes
        • Allocation
        • ErrorReporter
        • FileCopyAllocation
        • MemoryAllocation
        • MMAPAllocation
        • MutableOpResolver
        • OpResolver
        • TfLiteIntArrayView
      • Structs
        • StderrReporter
    • tflite::impl
      • Overview
      • Classes
        • Interpreter
    • tflite::op_resolver_hasher
      • Overview
      • Structs
        • OperatorKeyHasher
        • ValueHasher
        • BuiltinOperator >
  • Introduction
  • TensorFlow
  • For JavaScript
  • For Mobile & Edge
  • For Production
  • TensorFlow (v2.12.0)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
  • Models & datasets
  • Tools
  • Libraries & extensions
  • TensorFlow Certificate program
  • Learn ML
  • Responsible AI
  • Join
  • Blog
  • Forum ↗
  • Groups
  • Contribute
  • About
  • Case studies
  • TensorFlow
  • Learn
  • For Mobile & Edge
  • API

org.tensorflow.lite.support.label.ops

Classes

LabelAxisOp Labels TensorBuffer with axisLabels for outputs. 
LabelAxisOp.Builder The inner builder class to build a LabelTensor Operator. 

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-09-24 UTC.

  • Stay connected

    • Blog
    • GitHub
    • Twitter
    • 哔哩哔哩
  • Support

    • Issue tracker
    • Release notes
    • Stack Overflow
    • Brand guidelines
    • Cite TensorFlow
  • Terms
  • Privacy
  • ICP证合字B2-20070004号
  • Sign up for the TensorFlow newsletter Subscribe
  • English
  • Bahasa Indonesia
  • Español – América Latina
  • Français
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 日本語
  • 한국어