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
  • 中文 – 简体
GitHub Sign in
  • TensorFlow v2.16.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
  • C++
  • array_ops
    • Overview
    • tensorflow::ops::BatchToSpace
    • tensorflow::ops::BatchToSpaceND
    • tensorflow::ops::Bitcast
    • tensorflow::ops::BroadcastDynamicShape
    • tensorflow::ops::BroadcastTo
    • tensorflow::ops::CheckNumerics
    • tensorflow::ops::Concat
    • tensorflow::ops::ConjugateTranspose
    • tensorflow::ops::DebugGradientIdentity
    • tensorflow::ops::DebugGradientRefIdentity
    • tensorflow::ops::DeepCopy
    • tensorflow::ops::DepthToSpace
    • tensorflow::ops::DepthToSpace::Attrs
    • tensorflow::ops::Dequantize
    • tensorflow::ops::Dequantize::Attrs
    • tensorflow::ops::Diag
    • tensorflow::ops::DiagPart
    • tensorflow::ops::EditDistance
    • tensorflow::ops::EditDistance::Attrs
    • tensorflow::ops::Empty
    • tensorflow::ops::Empty::Attrs
    • tensorflow::ops::EnsureShape
    • tensorflow::ops::ExpandDims
    • tensorflow::ops::ExtractImagePatches
    • tensorflow::ops::ExtractVolumePatches
    • tensorflow::ops::FakeQuantWithMinMaxArgs
    • tensorflow::ops::FakeQuantWithMinMaxArgs::Attrs
    • tensorflow::ops::FakeQuantWithMinMaxArgsGradient
    • tensorflow::ops::FakeQuantWithMinMaxArgsGradient::Attrs
    • tensorflow::ops::FakeQuantWithMinMaxVars
    • tensorflow::ops::FakeQuantWithMinMaxVars::Attrs
    • tensorflow::ops::FakeQuantWithMinMaxVarsGradient
    • tensorflow::ops::FakeQuantWithMinMaxVarsGradient::Attrs
    • tensorflow::ops::FakeQuantWithMinMaxVarsPerChannel
    • tensorflow::ops::FakeQuantWithMinMaxVarsPerChannel::Attrs
    • tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient
    • tensorflow::ops::FakeQuantWithMinMaxVarsPerChannelGradient::Attrs
    • tensorflow::ops::Fill
    • tensorflow::ops::Fingerprint
    • tensorflow::ops::Gather
    • tensorflow::ops::Gather::Attrs
    • tensorflow::ops::GatherNd
    • tensorflow::ops::GatherV2
    • tensorflow::ops::GatherV2::Attrs
    • tensorflow::ops::GuaranteeConst
    • tensorflow::ops::Identity
    • tensorflow::ops::IdentityN
    • tensorflow::ops::ImmutableConst
    • tensorflow::ops::InplaceAdd
    • tensorflow::ops::InplaceSub
    • tensorflow::ops::InplaceUpdate
    • tensorflow::ops::InvertPermutation
    • tensorflow::ops::MatrixBandPart
    • tensorflow::ops::MatrixDiag
    • tensorflow::ops::MatrixDiagPart
    • tensorflow::ops::MatrixDiagPartV2
    • tensorflow::ops::MatrixDiagPartV3
    • tensorflow::ops::MatrixDiagPartV3::Attrs
    • tensorflow::ops::MatrixDiagV2
    • tensorflow::ops::MatrixDiagV3
    • tensorflow::ops::MatrixDiagV3::Attrs
    • tensorflow::ops::MatrixSetDiag
    • tensorflow::ops::MatrixSetDiagV2
    • tensorflow::ops::MatrixSetDiagV3
    • tensorflow::ops::MatrixSetDiagV3::Attrs
    • tensorflow::ops::MirrorPad
    • tensorflow::ops::OneHot
    • tensorflow::ops::OneHot::Attrs
    • tensorflow::ops::OnesLike
    • tensorflow::ops::Pad
    • tensorflow::ops::PadV2
    • tensorflow::ops::ParallelConcat
    • tensorflow::ops::Placeholder
    • tensorflow::ops::Placeholder::Attrs
    • tensorflow::ops::PlaceholderWithDefault
    • tensorflow::ops::PreventGradient
    • tensorflow::ops::PreventGradient::Attrs
    • tensorflow::ops::QuantizeAndDequantizeV2
    • tensorflow::ops::QuantizeAndDequantizeV2::Attrs
    • tensorflow::ops::QuantizeAndDequantizeV3
    • tensorflow::ops::QuantizeAndDequantizeV3::Attrs
    • tensorflow::ops::QuantizeAndDequantizeV4
    • tensorflow::ops::QuantizeAndDequantizeV4::Attrs
    • tensorflow::ops::QuantizeAndDequantizeV4Grad
    • tensorflow::ops::QuantizeAndDequantizeV4Grad::Attrs
    • tensorflow::ops::QuantizeV2
    • tensorflow::ops::QuantizeV2::Attrs
    • tensorflow::ops::QuantizedConcat
    • tensorflow::ops::QuantizedInstanceNorm
    • tensorflow::ops::QuantizedInstanceNorm::Attrs
    • tensorflow::ops::SetDiff1D
    • tensorflow::ops::SetDiff1D::Attrs
    • tensorflow::ops::Stack
    • tensorflow::ops::Stack::Attrs
    • tensorflow::ops::Where
    • tensorflow::ops::ZerosLike
  • candidate_sampling_ops
    • Overview
    • tensorflow::ops::AllCandidateSampler
    • tensorflow::ops::AllCandidateSampler::Attrs
    • tensorflow::ops::ComputeAccidentalHits
    • tensorflow::ops::ComputeAccidentalHits::Attrs
    • tensorflow::ops::FixedUnigramCandidateSampler
    • tensorflow::ops::FixedUnigramCandidateSampler::Attrs
    • tensorflow::ops::LearnedUnigramCandidateSampler
    • tensorflow::ops::LearnedUnigramCandidateSampler::Attrs
    • tensorflow::ops::LogUniformCandidateSampler
    • tensorflow::ops::LogUniformCandidateSampler::Attrs
    • tensorflow::ops::UniformCandidateSampler
    • tensorflow::ops::UniformCandidateSampler::Attrs
  • control_flow_ops
    • Overview
    • tensorflow::ops::Abort
    • tensorflow::ops::Abort::Attrs
    • tensorflow::ops::ControlTrigger
    • tensorflow::ops::LoopCond
    • tensorflow::ops::Merge
    • tensorflow::ops::NextIteration
    • tensorflow::ops::RefNextIteration
    • tensorflow::ops::RefSelect
    • tensorflow::ops::RefSwitch
    • tensorflow::ops::Switch
  • core
    • Overview
    • tensorflow::ClientSession
    • tensorflow::CompositeOpScopes
    • tensorflow::Input
    • tensorflow::Input::Initializer
    • tensorflow::Input::Initializer
    • tensorflow::InputList
    • tensorflow::Operation
    • tensorflow::Output
    • tensorflow::OutputHash
    • tensorflow::Scope
    • tensorflow::TensorBuffer
  • data_flow_ops
    • Overview
    • tensorflow::ops::AccumulatorApplyGradient
    • tensorflow::ops::AccumulatorNumAccumulated
    • tensorflow::ops::AccumulatorSetGlobalStep
    • tensorflow::ops::AccumulatorTakeGradient
    • tensorflow::ops::Barrier
    • tensorflow::ops::Barrier::Attrs
    • tensorflow::ops::BarrierClose
    • tensorflow::ops::BarrierClose::Attrs
    • tensorflow::ops::BarrierIncompleteSize
    • tensorflow::ops::BarrierInsertMany
    • tensorflow::ops::BarrierReadySize
    • tensorflow::ops::BarrierTakeMany
    • tensorflow::ops::BarrierTakeMany::Attrs
    • tensorflow::ops::ConditionalAccumulator
    • tensorflow::ops::ConditionalAccumulator::Attrs
    • tensorflow::ops::DeleteSessionTensor
    • tensorflow::ops::DynamicPartition
    • tensorflow::ops::DynamicStitch
    • tensorflow::ops::FIFOQueue
    • tensorflow::ops::FIFOQueue::Attrs
    • tensorflow::ops::GetSessionHandle
    • tensorflow::ops::GetSessionHandleV2
    • tensorflow::ops::GetSessionTensor
    • tensorflow::ops::MapClear
    • tensorflow::ops::MapClear::Attrs
    • tensorflow::ops::MapIncompleteSize
    • tensorflow::ops::MapIncompleteSize::Attrs
    • tensorflow::ops::MapPeek
    • tensorflow::ops::MapPeek::Attrs
    • tensorflow::ops::MapSize
    • tensorflow::ops::MapSize::Attrs
    • tensorflow::ops::MapStage
    • tensorflow::ops::MapStage::Attrs
    • tensorflow::ops::MapUnstage
    • tensorflow::ops::MapUnstage::Attrs
    • tensorflow::ops::MapUnstageNoKey
    • tensorflow::ops::MapUnstageNoKey::Attrs
    • tensorflow::ops::OrderedMapClear
    • tensorflow::ops::OrderedMapClear::Attrs
    • tensorflow::ops::OrderedMapIncompleteSize
    • tensorflow::ops::OrderedMapIncompleteSize::Attrs
    • tensorflow::ops::OrderedMapPeek
    • tensorflow::ops::OrderedMapPeek::Attrs
    • tensorflow::ops::OrderedMapSize
    • tensorflow::ops::OrderedMapSize::Attrs
    • tensorflow::ops::OrderedMapStage
    • tensorflow::ops::OrderedMapStage::Attrs
    • tensorflow::ops::OrderedMapUnstage
    • tensorflow::ops::OrderedMapUnstage::Attrs
    • tensorflow::ops::OrderedMapUnstageNoKey
    • tensorflow::ops::OrderedMapUnstageNoKey::Attrs
    • tensorflow::ops::PaddingFIFOQueue
    • tensorflow::ops::PaddingFIFOQueue::Attrs
    • tensorflow::ops::ParallelDynamicStitch
    • tensorflow::ops::PriorityQueue
    • tensorflow::ops::PriorityQueue::Attrs
    • tensorflow::ops::QueueClose
    • tensorflow::ops::QueueClose::Attrs
    • tensorflow::ops::QueueDequeue
    • tensorflow::ops::QueueDequeue::Attrs
    • tensorflow::ops::QueueDequeueMany
    • tensorflow::ops::QueueDequeueMany::Attrs
    • tensorflow::ops::QueueDequeueUpTo
    • tensorflow::ops::QueueDequeueUpTo::Attrs
    • tensorflow::ops::QueueEnqueue
    • tensorflow::ops::QueueEnqueue::Attrs
    • tensorflow::ops::QueueEnqueueMany
    • tensorflow::ops::QueueEnqueueMany::Attrs
    • tensorflow::ops::QueueIsClosed
    • tensorflow::ops::QueueIsClosedV2
    • tensorflow::ops::QueueSize
    • tensorflow::ops::RandomShuffleQueue
    • tensorflow::ops::RandomShuffleQueue::Attrs
    • tensorflow::ops::RecordInput
    • tensorflow::ops::RecordInput::Attrs
    • tensorflow::ops::SparseAccumulatorApplyGradient
    • tensorflow::ops::SparseAccumulatorTakeGradient
    • tensorflow::ops::SparseConditionalAccumulator
    • tensorflow::ops::SparseConditionalAccumulator::Attrs
    • tensorflow::ops::Stage
    • tensorflow::ops::Stage::Attrs
    • tensorflow::ops::StageClear
    • tensorflow::ops::StageClear::Attrs
    • tensorflow::ops::StagePeek
    • tensorflow::ops::StagePeek::Attrs
    • tensorflow::ops::StageSize
    • tensorflow::ops::StageSize::Attrs
    • tensorflow::ops::TensorArray
    • tensorflow::ops::TensorArray::Attrs
    • tensorflow::ops::TensorArrayClose
    • tensorflow::ops::TensorArrayConcat
    • tensorflow::ops::TensorArrayConcat::Attrs
    • tensorflow::ops::TensorArrayGather
    • tensorflow::ops::TensorArrayGather::Attrs
    • tensorflow::ops::TensorArrayGrad
    • tensorflow::ops::TensorArrayGradWithShape
    • tensorflow::ops::TensorArrayRead
    • tensorflow::ops::TensorArrayScatter
    • tensorflow::ops::TensorArraySize
    • tensorflow::ops::TensorArraySplit
    • tensorflow::ops::TensorArrayWrite
    • tensorflow::ops::Unstage
    • tensorflow::ops::Unstage::Attrs
  • image_ops
    • Overview
    • tensorflow::ops::AdjustContrast
    • tensorflow::ops::AdjustHue
    • tensorflow::ops::AdjustSaturation
    • tensorflow::ops::CombinedNonMaxSuppression
    • tensorflow::ops::CombinedNonMaxSuppression::Attrs
    • tensorflow::ops::CropAndResize
    • tensorflow::ops::CropAndResize::Attrs
    • tensorflow::ops::CropAndResizeGradBoxes
    • tensorflow::ops::CropAndResizeGradBoxes::Attrs
    • tensorflow::ops::CropAndResizeGradImage
    • tensorflow::ops::CropAndResizeGradImage::Attrs
    • tensorflow::ops::DecodeAndCropJpeg
    • tensorflow::ops::DecodeAndCropJpeg::Attrs
    • tensorflow::ops::DecodeBmp
    • tensorflow::ops::DecodeBmp::Attrs
    • tensorflow::ops::DecodeGif
    • tensorflow::ops::DecodeImage
    • tensorflow::ops::DecodeImage::Attrs
    • tensorflow::ops::DecodeJpeg
    • tensorflow::ops::DecodeJpeg::Attrs
    • tensorflow::ops::DecodePng
    • tensorflow::ops::DecodePng::Attrs
    • tensorflow::ops::DrawBoundingBoxes
    • tensorflow::ops::DrawBoundingBoxesV2
    • tensorflow::ops::EncodeJpeg
    • tensorflow::ops::EncodeJpeg::Attrs
    • tensorflow::ops::EncodeJpegVariableQuality
    • tensorflow::ops::EncodePng
    • tensorflow::ops::EncodePng::Attrs
    • tensorflow::ops::ExtractGlimpse
    • tensorflow::ops::ExtractGlimpse::Attrs
    • tensorflow::ops::ExtractJpegShape
    • tensorflow::ops::ExtractJpegShape::Attrs
    • tensorflow::ops::HSVToRGB
    • tensorflow::ops::NonMaxSuppression
    • tensorflow::ops::NonMaxSuppression::Attrs