Skip to main content
安装
学习
简介
TensorFlow 新手?
TensorFlow
核心的开放源代码机器学习库
针对 JavaScript
使用 JavaScript 进行机器学习开发的 TensorFlow.js
针对移动设备和 IoT 设备
针对移动设备和嵌入式设备推出的 TensorFlow Lite
针对生产
针对端到端机器学习组件推出的 TensorFlow Extended
Swift for TensorFlow(测试版)
API
TensorFlow (2.12)
Versions…
TensorFlow.js
TensorFlow Lite
TFX
资源
模型和数据集
由 Google 和社区构建的预训练模型和数据集
工具
帮助您使用 TensorFlow 的工具生态系统
库和扩展程序
在 TensorFlow 上构建的库和扩展程序
学习机器学习知识
学习机器学习工具 TensorFlow 基础知识的教育资源
社区
选择 TensorFlow 的原因
简介
案例研究
可信合作伙伴计划
/
English
中文 – 简体
GitHub
TensorFlow v1.15.0
概览
Python
JavaScript
C++
Java
安装
学习
More
API
More
概览
Python
JavaScript
C++
Java
资源
More
社区
选择 TensorFlow 的原因
More
GitHub
Python r1.15
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
data
Overview
experimental
Overview
debugging
Overview
distribute
Overview
cluster_resolver
Overview
experimental
Overview
distributions
Overview
dtypes
Overview
errors
Overview
experimental
Overview
feature_column
Overview
gfile
Overview
graph_util
Overview
image
Overview
initializers
Overview
io
Overview
gfile
Overview
layers
Overview
experimental
Overview
linalg
Overview
lite
Overview
constants
Overview
experimental
Overview
nn
Overview
logging
Overview
lookup
Overview
experimental
Overview
losses
Overview
manip
Overview
math
Overview
metrics
Overview
nest
Overview
nn
Overview
rnn_cell
Overview
profiler
Overview
python_io
Overview
quantization
Overview
queue
Overview
ragged
Overview
random
Overview
experimental
Overview
raw_ops
Overview
resource_loader
Overview
saved_model
Overview
builder
Overview
constants
Overview
experimental
Overview
loader
Overview
main_op
Overview
signature_constants
Overview
signature_def_utils
Overview
tag_constants
Overview
utils
Overview
sets
Overview
signal
Overview
sparse
Overview
spectral
Overview
strings
Overview
summary
Overview
sysconfig
Overview
test
Overview
tpu
Overview
experimental
Overview
train
Overview
experimental
Overview
queue_runner
Overview
user_ops
Overview
version
Overview
xla
Overview
experimental
Overview
v2
Overview
argmax
argmin
assert_equal
assert_greater
assert_less
assert_rank
batch_to_space
boolean_mask
case
cond
constant
convert_to_tensor
device
DeviceSpec
expand_dims
gather
gather_nd
gradients
hessians
name_scope
norm
ones_like
pad
reduce_all
reduce_any
reduce_logsumexp
reduce_max
reduce_mean
reduce_min
reduce_prod
reduce_sum
reverse_sequence
scalar_mul
shape
size
space_to_batch
squeeze
transpose
tuple
Variable
VariableAggregation
variable_creator_scope
while_loop
zeros_like
audio
Overview
autograph
Overview
to_code
to_graph
experimental
Overview
bitwise
Overview
compat
Overview
config
Overview
experimental
Overview
optimizer
Overview
threading
Overview
data
Overview
Dataset
FixedLengthRecordDataset
TextLineDataset
TFRecordDataset
experimental
Overview
choose_from_datasets
Counter
CsvDataset
make_batched_features_dataset
make_csv_dataset
RandomDataset
sample_from_datasets
SqlDataset
StatsAggregator
debugging
Overview
assert_all_finite
assert_greater_equal
assert_integer
assert_less_equal
assert_near
assert_negative
assert_none_equal
assert_non_negative
assert_non_positive
assert_positive
assert_rank_at_least
assert_rank_in
assert_scalar
assert_shapes
assert_type
distribute
Overview
MirroredStrategy
OneDeviceStrategy
Strategy
StrategyExtended
cluster_resolver
Overview
experimental
Overview
CentralStorageStrategy
MultiWorkerMirroredStrategy
ParameterServerStrategy
TPUStrategy
dtypes
Overview
errors
Overview
estimator
Overview
BaselineClassifier
BaselineEstimator
BaselineRegressor
classifier_parse_example_spec
DNNClassifier
DNNEstimator
DNNLinearCombinedClassifier
DNNLinearCombinedEstimator
DNNLinearCombinedRegressor
DNNRegressor
Estimator
LinearClassifier
LinearEstimator
LinearRegressor
regressor_parse_example_spec
experimental
Overview
RNNClassifier
RNNEstimator
export
Overview
experimental
Overview
feature_column
Overview
categorical_column_with_vocabulary_file
make_parse_example_spec
shared_embeddings
graph_util
Overview
image
Overview
crop_and_resize
draw_bounding_boxes
extract_glimpse
resize
ResizeMethod
resize_with_pad
sample_distorted_bounding_box
io
Overview
decode_csv
decode_raw
parse_example
parse_single_example
serialize_many_sparse
serialize_sparse
gfile
Overview
keras
Overview
activations
Overview
applications
Overview
densenet
Overview
imagenet_utils
Overview
inception_resnet_v2
Overview
inception_v3
Overview
mobilenet
Overview
mobilenet_v2
Overview
nasnet
Overview
resnet
Overview
resnet50
Overview
resnet_v2
Overview
vgg16
Overview
vgg19
Overview
xception
Overview
backend
Overview
name_scope
callbacks
Overview
TensorBoard
constraints
Overview
datasets
Overview
boston_housing
Overview
cifar10
Overview
cifar100
Overview
fashion_mnist
Overview
imdb
Overview
mnist
Overview
reuters
Overview
estimator
Overview
model_to_estimator
experimental
Overview
initializers
Overview
Constant
GlorotNormal
GlorotUniform
he_normal
he_uniform
Identity
Initializer
lecun_normal
lecun_uniform
Ones
Orthogonal
RandomNormal
RandomUniform
TruncatedNormal
VarianceScaling
Zeros
layers
Overview
BatchNormalization
DenseFeatures
GRU
GRUCell
LSTM
LSTMCell
losses
Overview
Reduction
metrics
Overview
mixed_precision
Overview
experimental
Overview
models
Overview
optimizers
Overview
schedules
Overview
preprocessing
Overview
image
Overview
sequence
Overview
text
Overview
regularizers
Overview
utils
Overview
wrappers
Overview
scikit_learn
Overview
linalg
Overview
l2_normalize
lite
Overview
TFLiteConverter
experimental
Overview
lookup
Overview
StaticHashTable
StaticVocabularyTable
experimental
Overview
math
Overview
bincount
confusion_matrix
count_nonzero
in_top_k
log_softmax
softmax
nest
Overview
nn
Overview
avg_pool2d
batch_norm_with_global_normalization
conv1d
conv2d
conv2d_transpose
conv3d
conv3d_transpose
convolution
crelu
depthwise_conv2d
depth_to_space
dilation2d
dropout
embedding_lookup
embedding_lookup_sparse
erosion2d
fractional_avg_pool
fractional_max_pool
max_pool_with_argmax
moments
nce_loss
pool
RNNCellDeviceWrapper
RNNCellDropoutWrapper
RNNCellResidualWrapper
safe_embedding_lookup_sparse
sampled_softmax_loss
separable_conv2d