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 v1.15.0
Overview Python C++ Java
TensorFlow
  • Install
  • Learn
    • More
  • API
    • More
    • Overview
    • Python
    • C++
    • Java
  • Ecosystem
    • More
  • Community
    • More
  • Why TensorFlow
    • More
  • GitHub
  • Overview
  • All Symbols
  • Python v1.15.0
  • tf
    • Overview
    • add_check_numerics_ops
    • add_to_collection
    • add_to_collections
    • AggregationMethod
    • all_variables
    • argsort
    • arg_max
    • arg_min
    • assert_variables_initialized
    • assign
    • assign_add
    • assign_sub
    • AttrValue
    • AttrValue.ListValue
    • batch_gather
    • batch_scatter_update
    • batch_to_space
    • batch_to_space_nd
    • bitcast
    • boolean_mask
    • broadcast_dynamic_shape
    • broadcast_static_shape
    • broadcast_to
    • case
    • cast
    • clip_by_average_norm
    • clip_by_global_norm
    • clip_by_norm
    • clip_by_value
    • colocate_with
    • concat
    • cond
    • ConditionalAccumulator
    • ConditionalAccumulatorBase
    • ConfigProto
    • ConfigProto.DeviceCountEntry
    • ConfigProto.Experimental
    • constant
    • container
    • control_dependencies
    • control_flow_v2_enabled
    • convert_to_tensor
    • convert_to_tensor_or_indexed_slices
    • convert_to_tensor_or_sparse_tensor
    • count_up_to
    • create_partitioned_variables
    • CriticalSection
    • custom_gradient
    • decode_raw
    • delete_session_tensor
    • device
    • DeviceSpec
    • Dimension
    • disable_control_flow_v2
    • disable_eager_execution
    • disable_resource_variables
    • disable_tensor_equality
    • disable_v2_behavior
    • disable_v2_tensorshape
    • div
    • dynamic_partition
    • dynamic_stitch
    • edit_distance
    • einsum
    • enable_control_flow_v2
    • enable_eager_execution
    • enable_resource_variables
    • enable_tensor_equality
    • enable_v2_behavior
    • enable_v2_tensorshape
    • ensure_shape
    • Event
    • executing_eagerly
    • expand_dims
    • extract_volume_patches
    • eye
    • fill
    • fingerprint
    • FixedLengthRecordReader
    • fixed_size_partitioner
    • floor_div
    • foldl
    • foldr
    • function
    • gather
    • gather_nd
    • get_collection
    • get_collection_ref
    • get_default_graph
    • get_default_session
    • get_local_variable
    • get_logger
    • get_session_handle
    • get_session_tensor
    • get_static_value
    • get_variable
    • get_variable_scope
    • global_variables
    • glorot_normal_initializer
    • glorot_uniform_initializer
    • GPUOptions
    • GPUOptions.Experimental
    • GPUOptions.Experimental.VirtualDevices
    • gradients
    • GradientTape
    • grad_pass_through
    • Graph
    • GraphDef
    • GraphKeys
    • GraphOptions
    • group
    • guarantee_const
    • hessians
    • HistogramProto
    • histogram_fixed_width
    • histogram_fixed_width_bins
    • identity
    • IdentityReader
    • identity_n
    • IndexedSlices
    • IndexedSlicesSpec
    • initialize_all_tables
    • initialize_all_variables
    • initialize_local_variables
    • initialize_variables
    • init_scope
    • InteractiveSession
    • is_tensor
    • is_variable_initialized
    • linspace
    • LMDBReader
    • load_file_system_library
    • load_library
    • load_op_library
    • local_variables
    • LogMessage
    • make_ndarray
    • make_template
    • make_tensor_proto
    • map_fn
    • meshgrid
    • MetaGraphDef
    • MetaGraphDef.CollectionDefEntry
    • MetaGraphDef.MetaInfoDef
    • MetaGraphDef.SignatureDefEntry
    • min_max_variable_partitioner
    • model_variables
    • Module
    • moving_average_variables
    • NameAttrList
    • NameAttrList.AttrEntry
    • name_scope
    • NodeDef
    • NodeDef.AttrEntry
    • NodeDef.ExperimentalDebugInfo
    • nondifferentiable_batch_function
    • norm
    • no_gradient
    • no_op
    • no_regularizer
    • numpy_function
    • ones
    • ones_like
    • one_hot
    • Operation
    • OptimizerOptions
    • OptionalSpec
    • op_scope
    • pad
    • parallel_stack
    • placeholder
    • placeholder_with_default
    • Print
    • print
    • py_func
    • py_function
    • quantize_v2
    • RaggedTensor
    • RaggedTensorSpec
    • random_normal_initializer
    • random_uniform_initializer
    • range
    • rank
    • ReaderBase
    • realdiv
    • recompute_grad
    • RegisterGradient
    • register_tensor_conversion_function
    • repeat
    • report_uninitialized_variables
    • required_space_to_batch_paddings
    • reset_default_graph
    • reshape
    • resource_variables_enabled
    • reverse
    • reverse_sequence
    • roll
    • RunMetadata
    • RunMetadata.FunctionGraphs
    • RunOptions
    • RunOptions.Experimental
    • scan
    • scatter_add
    • scatter_div
    • scatter_max
    • scatter_min
    • scatter_mul
    • scatter_nd
    • scatter_nd_add
    • scatter_nd_sub
    • scatter_nd_update
    • scatter_sub
    • scatter_update
    • searchsorted
    • sequence_mask
    • Session
    • SessionLog
    • setdiff1d
    • shape
    • shape_n
    • size
    • slice
    • sort
    • space_to_batch_nd
    • SparseTensorSpec
    • SparseTensorValue
    • sparse_matmul
    • sparse_to_dense
    • split
    • squeeze
    • stack
    • stop_gradient
    • strided_slice
    • string_split
    • substr
    • Summary
    • SummaryMetadata
    • SummaryMetadata.PluginData
    • switch_case
    • Tensor
    • TensorArray
    • TensorArraySpec
    • tensordot
    • TensorInfo
    • TensorInfo.CompositeTensor
    • TensorInfo.CooSparse
    • TensorShape
    • TensorSpec
    • tensor_scatter_nd_add
    • tensor_scatter_nd_sub
    • tensor_scatter_nd_update
    • TextLineReader
    • TFRecordReader
    • tile
    • timestamp
    • to_bfloat16
    • to_complex128
    • to_complex64
    • to_double
    • to_float
    • to_int32
    • to_int64
    • trainable_variables
    • transpose
    • truncatediv
    • truncatemod
    • tuple
    • TypeSpec
    • UnconnectedGradients
    • unique
    • unique_with_counts
    • unravel_index
    • unstack
    • Variable
    • Variable.SaveSliceInfo
    • VariableAggregation
    • VariableScope
    • VariableSynchronization
    • variable_axis_size_partitioner
    • variable_creator_scope
    • variable_op_scope
    • variable_scope
    • vectorized_map
    • where
    • where_v2
    • while_loop
    • WholeFileReader
    • wrap_function
    • zeros
    • zeros_initializer
    • zeros_like
  • tf.app
    • Overview
    • run
  • tf.audio
    • Overview
    • decode_wav
    • encode_wav
  • tf.autograph
    • Overview
    • set_verbosity
    • to_code
    • to_graph
    • trace
    • experimental
      • Overview
      • do_not_convert
      • Feature
  • tf.bitwise
    • Overview
    • bitwise_and
    • bitwise_or
    • bitwise_xor
    • invert
    • left_shift
    • right_shift
  • tf.compat
    • Overview
    • as_bytes
    • as_str_any
    • as_text
    • dimension_at_index
    • dimension_value
    • forward_compatibility_horizon
    • forward_compatible
    • path_to_str
    • v1
      • Overview
      • app
        • Overview
      • audio
        • Overview
      • autograph
        • Overview
        • experimental
          • Overview
      • bitwise
        • Overview
      • compat
        • Overview
      • config
        • Overview
        • experimental
          • Overview
        • optimizer
          • Overview
        • threading
          • Overview