Skip to main content
TensorFlow
Install Learn
  • Introduction
    New to TensorFlow?
  • Tutorials
    Learn how to use TensorFlow with end-to-end examples
  • Guide
    Learn framework concepts and components
  • Learn ML
    Educational resources to master your path with TensorFlow
API
  • TensorFlow (v2.16.1)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
Ecosystem
  • LIBRARIES
  • TensorFlow.js
    Develop web ML applications in JavaScript
  • TensorFlow Lite
    Deploy ML on mobile, microcontrollers and other edge devices
  • TFX
    Build production ML pipelines
  • All libraries
    Create advanced models and extend TensorFlow
  • RESOURCES
  • Models & datasets
    Pre-trained models and datasets built by Google and the community
  • Tools
    Tools to support and accelerate TensorFlow workflows
  • Responsible AI
    Resources for every stage of the ML workflow
  • Recommendation systems
    Build recommendation systems with open source tools
Community
  • Groups
    User groups, interest groups and mailing lists
  • Contribute
    Guide for contributing to code and documentation
  • Blog
    Stay up to date with all things TensorFlow
  • Forum
    Discussion platform for the TensorFlow community
Why TensorFlow
  • About
  • Case studies
/
  • English
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 日本語
  • 한국어
GitHub Sign in
  • TensorFlow v2.10.1
Overview Python C++ Java More
TensorFlow
  • Install
  • Learn
    • More
  • API
    • More
    • Overview
    • Python
    • C++
    • Java
    • More
  • Ecosystem
    • More
  • Community
    • More
  • Why TensorFlow
    • More
  • GitHub
  • TensorFlow for Java
    • org.tensorflow
      • Overview
      • DataType
      • EagerSession
        • Overview
        • DevicePlacementPolicy
        • Options
        • ResourceCleanupStrategy
      • ExecutionEnvironment
      • Graph
        • Overview
        • WhileSubgraphBuilder
      • GraphOperation
      • GraphOperationBuilder
      • Operand
      • Operation
      • OperationBuilder
      • Output
      • SavedModelBundle
        • Overview
        • Loader
      • Server
      • Session
        • Overview
        • Run
        • Runner
      • Shape
      • Tensor
      • TensorFlow
      • TensorFlowException
      • Tensors
    • org.tensorflow.examples
      • Overview
      • LabelImage
    • org.tensorflow.op
      • Overview
      • Op
      • Operands
      • PrimitiveOp
      • Scope
    • org.tensorflow.op.annotation
      • Overview
      • Operator
    • org.tensorflow.op.core
      • Overview
      • Abort
        • Overview
        • Options
      • All
        • Overview
        • Options
      • AllToAll
      • AnonymousHashTable
      • AnonymousIteratorV2
      • AnonymousIteratorV3
      • AnonymousMemoryCache
      • AnonymousMultiDeviceIterator
      • AnonymousMultiDeviceIteratorV3
      • AnonymousMutableDenseHashTable
        • Overview
        • Options
      • AnonymousMutableHashTable
      • AnonymousMutableHashTableOfTensors
        • Overview
        • Options
      • AnonymousRandomSeedGenerator
      • AnonymousSeedGenerator
      • Any
        • Overview
        • Options
      • ApplyAdagradV2
        • Overview
        • Options
      • ApproxTopK
        • Overview
        • Options
      • AssertCardinalityDataset
      • AssertNextDataset
      • AssertPrevDataset
      • AssertThat
        • Overview
        • Options
      • Assign
        • Overview
        • Options
      • AssignAdd
        • Overview
        • Options
      • AssignAddVariableOp
      • AssignSub
        • Overview
        • Options
      • AssignSubVariableOp
      • AssignVariableOp
        • Overview
        • Options
      • AssignVariableXlaConcatND
        • Overview
        • Options
      • AutoShardDataset
        • Overview
        • Options
      • BandedTriangularSolve
        • Overview
        • Options
      • Barrier
        • Overview
        • Options
      • BarrierClose
        • Overview
        • Options
      • BarrierIncompleteSize
      • BarrierInsertMany
      • BarrierReadySize
      • BarrierTakeMany
        • Overview
        • Options
      • Batch
        • Overview
        • Options
      • BatchMatMulV2
        • Overview
        • Options
      • BatchMatMulV3
        • Overview
        • Options
      • BatchToSpace
      • BatchToSpaceNd
      • BesselI0
      • BesselI1
      • BesselJ0
      • BesselJ1
      • BesselK0
      • BesselK0e
      • BesselK1
      • BesselK1e
      • BesselY0
      • BesselY1
      • Bitcast
      • BlockLSTM
        • Overview
        • Options
      • BlockLSTMGrad
      • BlockLSTMGradV2
      • BlockLSTMV2
        • Overview
        • Options
      • BoostedTreesAggregateStats
      • BoostedTreesBucketize
      • BoostedTreesCalculateBestFeatureSplit
        • Overview
        • Options
      • BoostedTreesCalculateBestFeatureSplitV2
      • BoostedTreesCalculateBestGainsPerFeature
      • BoostedTreesCenterBias
      • BoostedTreesCreateEnsemble
      • BoostedTreesCreateQuantileStreamResource
        • Overview
        • Options
      • BoostedTreesDeserializeEnsemble
      • BoostedTreesEnsembleResourceHandleOp
        • Overview
        • Options
      • BoostedTreesExampleDebugOutputs
      • BoostedTreesFlushQuantileSummaries
      • BoostedTreesGetEnsembleStates
      • BoostedTreesMakeQuantileSummaries
      • BoostedTreesMakeStatsSummary
      • BoostedTreesPredict
      • BoostedTreesQuantileStreamResourceAddSummaries
      • BoostedTreesQuantileStreamResourceDeserialize
      • BoostedTreesQuantileStreamResourceFlush
        • Overview
        • Options
      • BoostedTreesQuantileStreamResourceGetBucketBoundaries
      • BoostedTreesQuantileStreamResourceHandleOp
        • Overview
        • Options
      • BoostedTreesSerializeEnsemble
      • BoostedTreesSparseAggregateStats
      • BoostedTreesSparseCalculateBestFeatureSplit
        • Overview
        • Options
      • BoostedTreesTrainingPredict
      • BoostedTreesUpdateEnsemble
      • BoostedTreesUpdateEnsembleV2
        • Overview
        • Options
      • BroadcastDynamicShape
      • BroadcastGradientArgs
      • BroadcastTo
      • Bucketize
      • CSRSparseMatrixComponents
      • CSRSparseMatrixToDense
      • CSRSparseMatrixToSparseTensor
      • CSVDataset
      • CSVDatasetV2
      • CTCLossV2
        • Overview
        • Options
      • CacheDatasetV2
        • Overview
        • Options
      • CheckNumericsV2
      • ChooseFastestDataset
      • ClipByValue
      • CollateTPUEmbeddingMemory
      • CollectiveAllToAllV2
        • Overview
        • Options
      • CollectiveAllToAllV3
        • Overview
        • Options
      • CollectiveAssignGroupV2
      • CollectiveBcastRecvV2
        • Overview
        • Options
      • CollectiveBcastSendV2
        • Overview
        • Options
      • CollectiveGather
        • Overview
        • Options
      • CollectiveGatherV2
        • Overview
        • Options
      • CollectiveInitializeCommunicator
        • Overview
        • Options
      • CollectivePermute
      • CollectiveReduceScatterV2
        • Overview
        • Options
      • CollectiveReduceV2
        • Overview
        • Options
      • CollectiveReduceV3
        • Overview
        • Options
      • CombinedNonMaxSuppression
        • Overview
        • Options
      • CompositeTensorVariantFromComponents
      • CompositeTensorVariantToComponents
      • CompressElement
      • ComputeBatchSize
      • ComputeDedupDataTupleMask
      • Concat
      • ConfigureAndInitializeGlobalTPU
        • Overview
        • Options
      • ConfigureDistributedTPU
        • Overview
        • Options
      • ConfigureTPUEmbedding
      • ConfigureTPUEmbeddingHost
      • ConfigureTPUEmbeddingMemory
      • ConnectTPUEmbeddingHosts
      • Constant
      • ConsumeMutexLock
      • ControlTrigger
      • Conv
        • Overview
        • Options
      • Conv2DBackpropFilterV2
        • Overview
        • Options
      • Conv2DBackpropInputV2
        • Overview
        • Options
      • Copy
        • Overview
        • Options
      • CopyHost
        • Overview
        • Options
      • CopyToMesh
      • CopyToMeshGrad
      • CountUpTo
      • CrossReplicaSum
      • CudnnRNNBackpropV3
        • Overview
        • Options
      • CudnnRNNCanonicalToParamsV2
        • Overview
        • Options
      • CudnnRNNParamsToCanonicalV2
        • Overview
        • Options
      • CudnnRNNV3
        • Overview
        • Options
      • CumulativeLogsumexp
        • Overview
        • Options
      • DTensorRestoreV2
      • DTensorSetGlobalTPUArray
      • DataServiceDataset
        • Overview
        • Options
      • DataServiceDatasetV2
        • Overview
        • Options
      • DatasetCardinality
        • Overview
        • Options
      • DatasetFromGraph
      • DatasetToGraphV2
        • Overview
        • Options
      • Dawsn
      • DebugGradientIdentity
      • DebugGradientRefIdentity
      • DebugIdentity
        • Overview
        • Options
      • DebugIdentityV2
        • Overview
        • Options
      • DebugIdentityV3
        • Overview
        • Options
      • DebugNanCount
        • Overview
        • Options
      • DebugNumericSummary
        • Overview
        • Options
      • DebugNumericSummaryV2
        • Overview
        • Options
      • DecodeImage
        • Overview
        • Options
      • DecodePaddedRaw
        • Overview
        • Options
      • DecodeProto
        • Overview
        • Options
      • DeepCopy
      • DeleteIterator
      • DeleteMemoryCache
      • DeleteMultiDeviceIterator
      • DeleteRandomSeedGenerator
      • DeleteSeedGenerator
      • DeleteSessionTensor
      • DenseBincount
        • Overview
        • Options
      • DenseCountSparseOutput
        • Overview
        • Options
      • DenseToCSRSparseMatrix
      • DestroyResourceOp
        • Overview
        • Options
      • DestroyTemporaryVariable
      • DeviceIndex
      • DirectedInterleaveDataset
        • Overview
        • Options
      • DisableCopyOnRead
      • DistributedSave
        • Overview
        • Options
      • DrawBoundingBoxesV2
      • DummyIterationCounter
      • DummyMemoryCache
      • DummySeedGenerator
      • DynamicEnqueueTPUEmbeddingArbitraryTensorBatch
        • Overview
        • Options
      • DynamicEnqueueTPUEmbeddingRaggedTensorBatch
        • Overview
        • Options
      • DynamicPartition
      • DynamicStitch
      • EditDistance
        • Overview
        • Options
      • Eig
        • Overview
        • Options
      • Einsum
      • Empty
        • Overview
        • Options
      • EmptyTensorList
      • EmptyTensorMap
      • EncodeProto
        • Overview
        • Options
      • EnqueueTPUEmbeddingArbitraryTensorBatch
        • Overview
        • Options
      • EnqueueTPUEmbeddingBatch
        • Overview
        • Options
      • EnqueueTPUEmbeddingIntegerBatch
        • Overview
        • Options
      • EnqueueTPUEmbeddingRaggedTensorBatch
        • Overview
        • Options
      • EnqueueTPUEmbeddingSparseBatch
        • Overview
        • Options
      • EnqueueTPUEmbeddingSparseTensorBatch
        • Overview
        • Options
      • EnsureShape
      • Enter
        • Overview
        • Options
      • Erfinv
      • EuclideanNorm
        • Overview
        • Options
      • ExecuteTPUEmbeddingPartitioner
      • Exit
      • ExpandDims
      • ExperimentalAutoShardDataset
        • Overview
        • Options
      • ExperimentalBytesProducedStatsDataset
      • ExperimentalChooseFastestDataset
      • ExperimentalDatasetCardinality
      • ExperimentalDatasetToTFRecord
      • ExperimentalDenseToSparseBatchDataset
      • ExperimentalLatencyStatsDataset
      • ExperimentalMatchingFilesDataset
      • ExperimentalMaxIntraOpParallelismDataset
      • ExperimentalParseExampleDataset
        • Overview
        • Options
      • ExperimentalPrivateThreadPoolDataset
      • ExperimentalRandomDataset
      • ExperimentalRebatchDataset
        • Overview
        • Options
      • ExperimentalSetStatsAggregatorDataset
      • ExperimentalSlidingWindowDataset
      • ExperimentalSqlDataset
      • ExperimentalStatsAggregatorHandle
        • Overview
        • Options
      • ExperimentalStatsAggregatorSummary
      • ExperimentalUnbatchDataset
      • Expint
      • ExtractGlimpseV2
        • Overview
        • Options
      • ExtractVolumePatches
      • FFTND
      • FileSystemSetConfiguration
      • Fill
      • FinalizeDataset
        • Overview
        • Options
      • FinalizeTPUEmbedding
      • Fingerprint
      • FresnelCos
      • FresnelSin
      • FusedBatchNormGradV3
        • Overview
        • Options
      • FusedBatchNormV3
        • Overview
        • Options
      • GRUBlockCell
      • GRUBlockCellGrad
      • Gather
        • Overview
        • Options
      • GatherNd
      • GenerateBoundingBoxProposals
        • Overview
        • Options
      • GetElementAtIndex
      • GetOptions
      • GetSessionHandle
      • GetSessionTensor
      • Gradients
        • Overview
        • Options
      • GuaranteeConst
      • HashTable
        • Overview
        • Options
      • HistogramFixedWidth
      • IFFTND
      • IRFFTND
      • Identity
      • IdentityN
      • IgnoreErrorsDataset
        • Overview
        • Options
      • ImageProjectiveTransformV2
        • Overview
        • Options
      • ImageProjectiveTransformV3
        • Overview
        • Options
      • ImmutableConst
      • InfeedDequeue
      • InfeedDequeueTuple
      • InfeedEnqueue
        • Overview
        • Options
      • InfeedEnqueuePrelinearizedBuffer
        • Overview
        • Options
      • InfeedEnqueueTuple
        • Overview
        • Options
      • InitializeTable
      • InitializeTableFromDataset
      • InitializeTableFromTextFile
        • Overview
        • Options
      • InplaceAdd
      • InplaceSub
      • InplaceUpdate
      • IsBoostedTreesEnsembleInitialized
      • IsBoostedTreesQuantileStreamResourceInitialized
      • IsTPUEmbeddingInitialized
        • Overview
        • Options
      • IsVariableInitialized
      • IsotonicRegression
      • IteratorGetDevice
      • KMC2ChainInitialization
      • KmeansPlusPlusInitialization
      • KthOrderStatistic
      • LMDBDataset
      • LSTMBlockCell
        • Overview
        • Options
      • LSTMBlockCellGrad
      • LinSpace
      • ListDataset
        • Overview
        • Options
      • LoadAllTPUEmbeddingParameters
      • LoadTPUEmbeddingADAMParameters
        • Overview
        • Options
      • LoadTPUEmbeddingAdadeltaParameters
        • Overview
        • Options
      • LoadTPUEmbeddingAdagradMomentumParameters
        • Overview
        • Options
      • LoadTPUEmbeddingAdagradParameters
        • Overview
        • Options
      • LoadTPUEmbeddingCenteredRMSPropParameters
        • Overview
        • Options
      • LoadTPUEmbeddingFTRLParameters
        • Overview
        • Options
      • LoadTPUEmbeddingFrequencyEstimatorParameters
        • Overview
        • Options
      • LoadTPUEmbeddingMDLAdagradLightParameters
        • Overview
        • Options
      • LoadTPUEmbeddingMomentumParameters
        • Overview
        • Options
      • LoadTPUEmbeddingProximalAdagradParameters
        • Overview
        • Options
      • LoadTPUEmbeddingProximalYogiParameters
        • Overview
        • Options
      • LoadTPUEmbeddingRMSPropParameters
        • Overview
        • Options
      • LoadTPUEmbeddingStochasticGradientDescentParameters
        • Overview
        • Options
      • LookupTableExport
      • LookupTableFind
      • LookupTableImport
      • LookupTableInsert
      • LookupTableRemove
      • LookupTableSize
      • LoopCond
      • LowerBound
      • Lu
      • MakeUnique
      • MapClear
        • Overview
        • Options
      • MapIncompleteSize
        • Overview
        • Options
      • MapPeek
        • Overview
        • Options
      • MapSize
        • Overview
        • Options
      • MapStage
        • Overview
        • Options
      • MapUnstage
        • Overview
        • Options
      • MapUnstageNoKey
        • Overview
        • Options
      • MatrixDiagPartV2
      • MatrixDiagPartV3
        • Overview
        • Options
      • MatrixDiagV2
      • MatrixDiagV3
        • Overview
        • Options
      • MatrixSetDiagV2
      • MatrixSetDiagV3
        • Overview
        • Options
      • Max
        • Overview
        • Options
      • MaxIntraOpParallelismDataset
      • Merge
      • MergeDedupData
        • Overview
        • Options
      • Min
        • Overview
        • Options
      • MirrorPad
      • MirrorPadGrad
      • MlirPassthroughOp
      • MulNoNan
      • MutableDenseHashTable
        • Overview
        • Options
      • MutableHashTable
        • Overview
        • Options
      • MutableHashTableOfTensors
        • Overview
        • Options
      • Mutex
        • Overview
        • Options
      • MutexLock
      • NcclAllReduce
      • NcclBroadcast
      • NcclReduce
      • Ndtri
      • NearestNeighbors
      • NextAfter
      • NextIteration
      • NoOp
      • NonDeterministicInts
      • NonMaxSuppressionV5
        • Overview
        • Options
      • NonSerializableDataset
      • OneHot
        • Overview
        • Options
      • OnesLike
      • OptimizeDatasetV2
        • Overview
        • Options
      • OptionsDataset
        • Overview
        • Options
      • OrderedMapClear
        • Overview
        • Options
      • OrderedMapIncompleteSize
        • Overview
        • Options
      • OrderedMapPeek
        • Overview
        • Options
      • OrderedMapSize
        • Overview
        • Options
      • OrderedMapStage
        • Overview
        • Options
      • OrderedMapUnstage
        • Overview
        • Options
      • OrderedMapUnstageNoKey
        • Overview
        • Options
      • OutfeedDequeue
        • Overview
        • Options
      • OutfeedDequeueTuple
        • Overview
        • Options
      • OutfeedDequeueTupleV2
      • OutfeedDequeueV2
      • OutfeedEnqueue
      • OutfeedEnqueueTuple
      • Pad
      • ParallelBatchDataset
        • Overview
        • Options
      • ParallelConcat
      • ParallelDynamicStitch
      • ParseExampleDatasetV2
        • Overview
        • Options
      • ParseExampleV2
      • ParseSequenceExampleV2
        • Overview
        • Options
      • Placeholder
        • Overview
        • Options
      • PlaceholderWithDefault
      • Prelinearize
        • Overview
        • Options
      • PrelinearizeTuple
        • Overview
        • Options
      • Print
        • Overview
        • Options
      • PrivateThreadPoolDataset
      • Prod
        • Overview
        • Options
      • QuantizeAndDequantizeV4
        • Overview
        • Options
      • QuantizeAndDequantizeV4Grad
        • Overview
        • Options
      • QuantizedConcat
      • QuantizedConcatV2
      • QuantizedConv2DAndRelu
        • Overview
        • Options
      • QuantizedConv2DAndReluAndRequantize
        • Overview
        • Options
      • QuantizedConv2DAndRequantize
        • Overview
        • Options
      • QuantizedConv2DPerChannel
        • Overview
        • Options
      • QuantizedConv2DWithBias
        • Overview
        • Options
      • QuantizedConv2DWithBiasAndRelu
        • Overview
        • Options
      • QuantizedConv2DWithBiasAndReluAndRequantize
        • Overview
        • Options
      • QuantizedConv2DWithBiasAndRequantize
        • Overview
        • Options
      • QuantizedConv2DWithBiasSignedSumAndReluAndRequantize
        • Overview
        • Options
      • QuantizedConv2DWithBiasSumAndRelu
        • Overview
        • Options
      • QuantizedConv2DWithBiasSumAndReluAndRequantize
        • Overview
        • Options
      • QuantizedDepthwiseConv2D
        • Overview
        • Options
      • QuantizedDepthwiseConv2DWithBias
        • Overview
        • Options
      • QuantizedDepthwiseConv2DWithBiasAndRelu
        • Overview
        • Options
      • QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize
        • Overview
        • Options
      • QuantizedMatMulWithBias
        • Overview
        • Options
      • QuantizedMatMulWithBiasAndDequantize
        • Overview
        • Options
      • QuantizedMatMulWithBiasAndRelu
        • Overview
        • Options
      • QuantizedMatMulWithBiasAndReluAndRequantize
        • Overview
        • Options
      • QuantizedMatMulWithBiasAndRequantize
        • Overview
        • Options
      • QuantizedReshape
      • RFFTND
      • RaggedBincount
        • Overview
        • Options
      • RaggedCountSparseOutput
        • Overview
        • Options
      • RaggedCross
      • RaggedFillEmptyRows
      • RaggedFillEmptyRowsGrad
      • RaggedGather
      • RaggedRange
      • RaggedTensorFromVariant
      • RaggedTensorToSparse
      • RaggedTensorToTensor
      • RaggedTensorToVariant
      • RaggedTensorToVariantGradient
      • RandomDatasetV2
        • Overview
        • Options
      • RandomIndexShuffle
        • Overview
        • Options
      • Range
      • Rank
      • ReadVariableOp
      • ReadVariableXlaSplitND
        • Overview
        • Options
      • RebatchDataset
        • Overview
        • Options
      • RebatchDatasetV2
      • Recv
        • Overview
        • Options
      • RecvTPUEmbeddingActivations
      • ReduceAll
        • Overview
        • Options
      • ReduceAny
        • Overview
        • Options
      • ReduceMax
        • Overview
        • Options
      • ReduceMin
        • Overview
        • Options
      • ReduceProd
        • Overview
        • Options
      • ReduceSum
        • Overview
        • Options
      • RefEnter
        • Overview
        • Options
      • RefExit
      • RefIdentity
      • RefMerge
      • RefNextIteration
      • RefSelect
      • RefSwitch
      • RegisterDataset
        • Overview
        • Options
      • RegisterDatasetV2
        • Overview
        • Options
      • Relayout
      • RelayoutLike
      • RequantizationRangePerChannel
      • RequantizePerChannel
      • Reshape
      • ResourceAccumulatorApplyGradient
      • ResourceAccumulatorNumAccumulated
      • ResourceAccumulatorSetGlobalStep
      • ResourceAccumulatorTakeGradient
      • ResourceApplyAdagradV2
        • Overview
        • Options
      • ResourceApplyAdamWithAmsgrad
        • Overview
        • Options
      • ResourceApplyKerasMomentum
        • Overview
        • Options
      • ResourceConditionalAccumulator
        • Overview
        • Options
      • ResourceCountUpTo
      • ResourceGather
        • Overview
        • Options
      • ResourceGatherNd
      • ResourceScatterAdd
      • ResourceScatterDiv
      • ResourceScatterMax
      • ResourceScatterMin
      • ResourceScatterMul
      • ResourceScatterNdAdd
        • Overview
        • Options
      • ResourceScatterNdMax
        • Overview
        • Options
      • ResourceScatterNdMin
        • Overview
        • Options
      • ResourceScatterNdSub
        • Overview
        • Options
      • ResourceScatterNdUpdate
        • Overview
        • Options
      • ResourceScatterSub
      • ResourceScatterUpdate
      • ResourceSparseApplyAdagradV2
        • Overview
        • Options
      • ResourceSparseApplyKerasMomentum
        • Overview
        • Options
      • ResourceStridedSliceAssign
        • Overview
        • Options
      • RetrieveAllTPUEmbeddingParameters
      • RetrieveTPUEmbeddingADAMParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingAdadeltaParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingAdagradMomentumParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingAdagradParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingCenteredRMSPropParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingFTRLParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingFrequencyEstimatorParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingMDLAdagradLightParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingMomentumParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingProximalAdagradParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingProximalYogiParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingRMSPropParameters
        • Overview
        • Options
      • RetrieveTPUEmbeddingStochasticGradientDescentParameters
        • Overview
        • Options
      • Reverse
      • ReverseSequence
        • Overview
        • Options
      • RewriteDataset
      • RiscAbs
      • RiscAdd
      • RiscBinaryArithmetic
      • RiscBinaryComparison
      • RiscBitcast
      • RiscBroadcast
      • RiscCast
      • RiscCeil
      • RiscCholesky
      • RiscConcat
      • RiscConv
        • Overview
        • Options
      • RiscCos
      • RiscDiv
      • RiscDot
        • Overview
        • Options
      • RiscExp
      • RiscFft
      • RiscFloor
      • RiscGather
        • Overview
        • Options
      • RiscImag
      • RiscIsFinite
      • RiscLog
      • RiscLogicalAnd
      • RiscLogicalNot
      • RiscLogicalOr
      • RiscMax
      • RiscMin
      • RiscMul
      • RiscNeg
      • RiscPad
      • RiscPool
        • Overview
        • Options
      • RiscPow
      • RiscRandomUniform
        • Overview
        • Options
      • RiscReal
      • RiscReduce
      • RiscRem
      • RiscReshape
      • RiscReverse
      • RiscScatter
      • RiscShape
      • RiscSign
      • RiscSlice
      • RiscSort
      • RiscSqueeze
        • Overview
        • Options
      • RiscSub
      • RiscTranspose
      • RiscTriangularSolve
        • Overview
        • Options
      • RiscUnary
      • RngReadAndSkip
      • RngSkip
      • Roll
      • SamplingDataset
      • ScaleAndTranslate
        • Overview
        • Options
      • ScaleAndTranslateGrad
        • Overview
        • Options
      • ScatterAdd
        • Overview
        • Options
      • ScatterDiv
        • Overview
        • Options
      • ScatterMax
        • Overview
        • Options
      • ScatterMin
        • Overview
        • Options
      • ScatterMul
        • Overview
        • Options
      • ScatterNd
      • ScatterNdAdd
        • Overview
        • Options
      • ScatterNdMax
        • Overview
        • Options
      • ScatterNdMin
        • Overview
        • Options
      • ScatterNdNonAliasingAdd
      • ScatterNdSub
        • Overview
        • Options
      • ScatterNdUpdate
        • Overview
        • Options
      • ScatterSub
        • Overview
        • Options
      • ScatterUpdate
        • Overview
        • Options
      • SegmentMaxV2
      • SegmentMinV2
      • SegmentProdV2
      • SegmentSumV2
      • SelectV2
      • Send
        • Overview
        • Options
      • SendTPUEmbeddingGradients
      • SetDiff1d
      • SetSize
        • Overview
        • Options
      • Shape
      • ShapeN
      • ShardDataset
        • Overview
        • Options
      • ShuffleAndRepeatDatasetV2
        • Overview
        • Options
      • ShuffleDatasetV2
        • Overview
        • Options
      • ShuffleDatasetV3
        • Overview
        • Options
      • ShutdownDistributedTPU
      • ShutdownTPUSystem
      • Size
      • Skipgram
        • Overview
        • Options
      • SleepDataset
      • Slice
      • SlidingWindowDataset
        • Overview
        • Options
      • Snapshot
      • SnapshotChunkDataset
        • Overview
        • Options
      • SnapshotDataset
        • Overview
        • Options
      • SnapshotDatasetReader
        • Overview
        • Options
      • SnapshotNestedDatasetReader
      • SobolSample
      • SpaceToBatchNd
      • SparseApplyAdagradV2
        • Overview
        • Options
      • SparseBincount
        • Overview
        • Options
      • SparseCountSparseOutput
        • Overview
        • Options
      • SparseCrossHashed
      • SparseCrossV2
      • SparseMatrixAdd
      • SparseMatrixMatMul
        • Overview
        • Options
      • SparseMatrixMul
      • SparseMatrixNNZ
      • SparseMatrixOrderingAMD
      • SparseMatrixSoftmax
      • SparseMatrixSoftmaxGrad
      • SparseMatrixSparseCholesky
      • SparseMatrixSparseMatMul
        • Overview
        • Options
      • SparseMatrixTranspose
        • Overview
        • Options
      • SparseMatrixZeros
      • SparseSegmentMeanGradV2
      • SparseSegmentSqrtNGradV2
      • SparseSegmentSumGrad
      • SparseSegmentSumGradV2
      • SparseTensorToCSRSparseMatrix
      • Spence
      • Split
      • SplitDedupData
        • Overview
        • Options
      • SplitV
      • Squeeze
        • Overview
        • Options
      • Stack
        • Overview
        • Options
      • Stage
        • Overview
        • Options
      • StageClear
        • Overview
        • Options
      • StagePeek
        • Overview
        • Options
      • StageSize
        • Overview
        • Options
      • StatefulRandomBinomial
      • StatefulStandardNormal
      • StatefulStandardNormalV2
      • StatefulTruncatedNormal
      • StatefulUniform
      • StatefulUniformFullInt
      • StatefulUniformInt
      • StatelessParameterizedTruncatedNormal
      • StatelessRandomBinomial
      • StatelessRandomGammaV2
      • StatelessRandomGammaV3
      • StatelessRandomGetAlg
      • StatelessRandomGetKeyCounter
      • StatelessRandomGetKeyCounterAlg
      • StatelessRandomNormalV2
      • StatelessRandomPoisson
      • StatelessRandomUniformFullInt
      • StatelessRandomUniformFullIntV2
      • StatelessRandomUniformIntV2
      • StatelessRandomUniformV2
      • StatelessSampleDistortedBoundingBox
        • Overview
        • Options
      • StatelessShuffle
      • StatelessTruncatedNormalV2
      • StatsAggregatorHandleV2
        • Overview
        • Options
      • StatsAggregatorSetSummaryWriter
      • StochasticCastToInt
      • StopGradient
      • StridedSlice
        • Overview
        • Options
      • StridedSliceAssign
        • Overview
        • Options
      • StridedSliceGrad
        • Overview
        • Options
      • StringLower
        • Overview
        • Options
      • StringNGrams
      • StringUpper
        • Overview
        • Options
      • Sum
        • Overview
        • Options
      • SwitchCond
      • SyncDevice
      • TFRecordDatasetV2
        • Overview
        • Options
      • TPUCompilationResult
      • TPUCompileSucceededAssert
      • TPUEmbeddingActivations
      • TPUExecute
      • TPUExecuteAndUpdateVariables
      • TPUOrdinalSelector
      • TPUPartitionedInput
        • Overview
        • Options
      • TPUPartitionedInputV2
        • Overview
        • Options
      • TPUPartitionedOutput
        • Overview
        • Options
      • TPUPartitionedOutputV2
      • TPUReplicateMetadata
        • Overview
        • Options
      • TPUReplicatedInput
        • Overview
        • Options
      • TPUReplicatedOutput
      • TPUReshardVariables
      • TPURoundRobin
      • TemporaryVariable
        • Overview
        • Options
      • TensorArray
        • Overview
        • Options
      • TensorArrayClose
      • TensorArrayConcat
        • Overview
        • Options
      • TensorArrayGather
        • Overview
        • Options
      • TensorArrayGrad
      • TensorArrayGradWithShape
      • TensorArrayPack
        • Overview
        • Options
      • TensorArrayRead
      • TensorArrayScatter
      • TensorArraySize
      • TensorArraySplit
      • TensorArrayUnpack
      • TensorArrayWrite
      • TensorListConcat
        • Overview
        • Options
      • TensorListConcatLists
      • TensorListConcatV2
      • TensorListElementShape
      • TensorListFromTensor
      • TensorListGather
      • TensorListGetItem
      • TensorListLength
      • TensorListPopBack
      • TensorListPushBack
      • TensorListPushBackBatch
      • TensorListReserve
      • TensorListResize
      • TensorListScatter
      • TensorListScatterIntoExistingList
      • TensorListScatterV2
      • TensorListSetItem
        • Overview
        • Options
      • TensorListSplit
      • TensorListStack
        • Overview
        • Options
      • TensorMapErase
      • TensorMapHasKey
      • TensorMapInsert
      • TensorMapLookup
      • TensorMapSize
      • TensorMapStackKeys
      • TensorScatterAdd
      • TensorScatterMax
      • TensorScatterMin
      • TensorScatterSub
      • TensorScatterUpdate
      • TensorStridedSliceUpdate
        • Overview
        • Options
      • ThreadPoolDataset
      • ThreadPoolHandle
        • Overview
        • Options
      • Tile
      • Timestamp
      • ToBool
      • TopKUnique
      • TopKWithUnique
      • TpuHandleToProtoKey
      • TridiagonalMatMul
      • TridiagonalSolve
        • Overview
        • Options
      • Unbatch
        • Overview
        • Options
      • UnbatchGrad
        • Overview
        • Options
      • UncompressElement
      • UnicodeDecode
        • Overview
        • Options
      • UnicodeEncode
        • Overview
        • Options
      • UniformDequantize
        • Overview
        • Options
      • UniformQuantize
        • Overview
        • Options
      • UniformQuantizedAdd
        • Overview
        • Options
      • UniformQuantizedClipByValue
        • Overview
        • Options
      • UniformQuantizedConvolution
        • Overview
        • Options
      • UniformQuantizedConvolutionHybrid
        • Overview
        • Options
      • UniformQuantizedDot
        • Overview
        • Options
      • UniformQuantizedDotHybrid
        • Overview
        • Options
      • UniformRequantize
        • Overview
        • Options
      • Unique
      • UniqueDataset
        • Overview
        • Options
      • UniqueWithCounts
      • UnravelIndex
      • UnsortedSegmentJoin
        • Overview
        • Options
      • Unstack
        • Overview
        • Options
      • Unstage
        • Overview
        • Options
      • UnwrapDatasetVariant
      • UpperBound
      • VarHandleOp
        • Overview
        • Options
      • VarIsInitializedOp
      • Variable
        • Overview
        • Options
      • VariableShape
      • Where
      • Where3
      • WindowOp
      • WorkerHeartbeat
      • WrapDatasetVariant
      • WriteRawProtoSummary
      • XlaConcatND
        • Overview
        • Options
      • XlaRecvFromHost
      • XlaRecvTPUEmbeddingActivations
      • XlaRecvTPUEmbeddingDeduplicationData
      • XlaSendTPUEmbeddingGradients
      • XlaSendToHost
      • XlaSplitND
        • Overview
        • Options
      • Xlog1py
      • Zeros
      • ZerosLike
    • org.tensorflow.types
      • Overview
      • UInt8
  • Introduction
  • Tutorials
  • Guide
  • Learn ML
  • TensorFlow (v2.16.1)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
  • LIBRARIES
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
  • All libraries
  • RESOURCES
  • Models & datasets
  • Tools
  • Responsible AI
  • Recommendation systems
  • Groups
  • Contribute
  • Blog
  • Forum
  • About
  • Case studies
  • TensorFlow
  • API
  • TensorFlow v2.10.1
  • Java

org.tensorflow.examples
Stay organized with collections Save and categorize content based on your preferences.

Classes

LabelImage Sample use of the TensorFlow Java API to label images using a pre-trained model. 

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. Some content is licensed under the numpy license.

Last updated 2022-09-07 UTC.

  • Stay connected

    • Blog
    • Forum
    • GitHub
    • Twitter
    • YouTube
  • Support

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