\u200E
  • 3.2
  • 3.1
  • 3.0
  • develop
  • 3.0-beta
  • 2.6
  • 2.5
  • 2.4
  • 2.3
  • 2.2
  • 2.1
  • 2.0
  • 1.8
  • 中文(简)
  • English(En)
  • 安装指南
    • Pip 安装
      • Linux 下的 PIP 安装
      • macOS 下的 PIP 安装
      • Windows 下的 PIP 安装
    • Docker 安装
      • Linux 下的 Docker 安装
      • macOS 下的 Docker 安装
      • Docker 列表
    • 从源码编译
      • Linux 下使用 make 从源码编译
      • macOS 下使用 make 从源码编译
      • Linux 下使用 ninja 从源码编译
      • macOS 下使用 ninja 从源码编译
      • Windows 下从源码编译
      • 飞腾/鲲鹏下从源码编译
      • 申威下从源码编译
      • 兆芯下从源码编译
      • 龙芯下从源码编译
    • 附录
  • 使用指南
    • 飞桨 3.0 全新特性
      • 飞桨框架3.0正式版发布——加速大模型时代的技术创新与产业应用
      • 自动并行训练
      • CINN 神经网络编译器
      • 高阶自动微分功能支持科学计算
      • 动转静 SOT 原理及使用
      • PIR 基本概念和开发
      • Paddle Inference(TensorRT 子图引擎)
    • 模型开发入门
      • 10分钟快速上手飞桨
      • Tensor 介绍
      • 数据集定义与加载
      • 数据预处理
      • 模型组网
      • 模型训练、评估与推理
      • 模型保存与加载
    • 模型开发更多用法
      • 使用 VisualDL 可视化模型,数据和训练
      • 使用 Comate 加速飞桨编程
      • 自动微分机制介绍
      • 使用 paddle.nn.Layer 自定义网络
      • 自定义Loss、Metric 及 Callback
      • 梯度裁剪方式介绍
      • 飞桨模型转 ONNX 模型
      • 隐式数据类型提升介绍
    • 动态图转静态图
      • 使用样例
      • 转换原理
      • 支持语法
      • 案例解析
      • 报错调试
      • Limitations
    • 推理部署
      • 服务器部署 — Paddle Inference
      • 移动端/嵌入式部署 — Paddle Lite
      • 模型自动化压缩工具(ACT)
    • 分布式训练
      • 分布式训练简介
      • 环境部署
      • 快速开始-数据并行
      • 快速开始-参数服务器
      • 数据并行
        • 原理和实践案例
        • 前向重计算
        • 自动混合精度
        • Gradient Merge
      • 参数服务器
        • 参数服务器概述
        • 纯 GPU 参数服务器
        • CPUPS 流式训练示例
      • 张量模型并行
      • 流水线并行
      • 分组切分并行
      • MoE
      • 静态图流水并行时序图可视化工具
    • 性能调优
      • 自动混合精度训练(AMP)
      • 模型性能分析(Profiler)
      • 训练全流程自动调优(Beta)
    • 模型迁移
      • 迁移指南
      • 从 PyTorch 迁移到飞桨
        • PyTorch 最新 release 与 Paddle develop API 映射表
        • CV - 快速上手
        • CV - 迁移经验汇总
        • NLP - 快速上手
        • NLP - 迁移经验汇总
        • 解读网络结构转换
        • 解读 Bert 模型权重转换
        • PyTorch 自定义算子转写教程
      • 代码自动转换工具
      • 使用 X2Paddle 迁移推理模型
      • 迁移飞桨旧版本
        • 升级指南
        • 版本迁移工具
        • 兼容载入旧格式模型
        • Paddle 1.8 与 Paddle 2.0 API 映射表
      • 附录: 飞桨框架 2.x
    • 自定义算子
      • 自定义 C++算子
      • 自定义 C++ 扩展
      • 自定义 Python 算子
    • 环境变量 FLAGS
      • cudnn
      • 数值计算
      • 调试
        • check nan inf 工具
      • 设备管理
      • 分布式
      • 执行器
      • 存储管理
      • 昇腾 NPU
      • 其他
  • 硬件支持
    • 飞桨产品硬件支持表
    • 昆仑芯 XPU 芯片
      • 昆仑芯 XPU 安装说明
      • 昆仑芯 XPU 基于框架的使用指南
      • 昆仑芯 XPU 基于 PaddleX 的使用指南
      • 昆仑芯 XPU 支持模型
      • 昆仑芯 XPU P800 安装说明
      • 昆仑芯 XPU P800 基于框架的使用指南
      • 昆仑芯 XPU P800 基于 PaddleX 的使用指南
      • 昆仑芯 XPU 支持模型
    • 海光 DCU 芯片
      • 海光 DCU 安装说明
      • 海光 DCU 基于框架的使用指南
      • 海光 DCU 基于 PaddleX 的使用指南
      • 海光 DCU 验证模型
    • 昇腾 NPU 芯片
      • 昇腾 NPU 安装说明
      • 昇腾 NPU 基于框架的使用指南
      • 昇腾 NPU 基于 PaddleX 的使用指南
      • 昇腾 NPU 验证模型
    • 寒武纪 MLU 芯片
      • 寒武纪 MLU 安装说明
      • 寒武纪 MLU 基于框架的使用指南
      • 寒武纪 MLU 基于 PaddleX 的使用指南
      • 寒武纪 MLU 验证模型
    • 燧原 GCU 芯片
      • 燧原 GCU 安装说明
      • 燧原 GCU 基于 PaddleX 的使用指南
      • 燧原 GCU 验证模型
    • 太初 SDAA 芯片
      • 太初 SDAA 安装说明
      • 太初 SDAA 基于框架的使用指南
    • METAX GPGPU 芯片
      • 沐曦 曦云 C 系列 安装说明
      • 沐曦 曦云 C500 基于 PaddlePaddle 框架的使用指南
    • 天数 GPGPU 芯片
      • 天数 GPGPU 安装说明
  • 应用实践
    • 快速上手
      • hello paddle: 从普通程序走向机器学习程序
      • 动态图
      • 飞桨高层API使用指南
      • 模型保存及加载
      • 使用线性回归预测波士顿房价
    • 计算机视觉
      • 使用LeNet在MNIST数据集实现图像分类
      • 使用卷积神经网络进行图像分类
      • CIFAR-100数据集上基于Vision Transformer 实现图片分类
      • GAMMA比赛多模态眼底图像数据集下基于EfficientNet和ResNet构造fundus_img和oct_img的分类模型
      • MosMedData: 新冠肺炎胸部 CT扫描数据集上基于3D-CNN实现二分类
      • 基于图片相似度的图片搜索
      • 基于U-Net卷积神经网络实现宠物图像分割
      • 通过OCR实现验证码识别
      • 通过Sub-Pixel实现图像超分辨率
      • 人脸关键点检测
      • 点云处理:实现PointNet点云分类
      • 点云处理:实现PointNet点云分割
    • 自然语言处理
      • 用N-Gram模型在莎士比亚文集中训练word embedding
      • IMDB 数据集使用BOW网络的文本分类
      • 使用预训练的词向量完成文本分类任务
      • 使用注意力机制的LSTM的机器翻译
      • 基于Transformer实现英语到西班牙语的翻译任务
      • 使用序列到序列模型完成数字加法
    • 推荐
      • 使用协同过滤实现电影推荐
    • 强化学习
      • 强化学习——Actor Critic Method
      • 强化学习——Advantage Actor-Critic(A2C)
      • 强化学习——Deep Deterministic Policy Gradient (DDPG)
      • 强化学习——DQN玩合成大西瓜
      • 用飞桨框架2.0造一个会下五子棋的AI模型
    • 时序数据
      • 通过AutoEncoder实现时序数据异常检测
      • Jena Climate时间序列数据集上使用LSTM进行温度的预报
      • 证券数据集下使用LSTM模型预测A股走势
    • 动转静
      • 使用动转静完成以图搜图
    • 生成式对抗网络
      • 图像风格迁移模型-CycleGAN
      • 通过DCGAN实现人脸图像生成
      • MNIST数据集下用Paddle框架的动态图模式玩耍经典对抗生成网络(GAN)
      • 城市街景分割数据集下使用对抗网络Pix2Pix根据掩码生成街景
  • API 文档
    • paddle
      • Overview
      • abs
      • abs_
      • acos
      • acos_
      • acosh
      • add
      • add_
      • add_n
      • addmm
      • addmm_
      • all
      • allclose
      • amax
      • amin
      • angle
      • any
      • arange
      • argmax
      • argmin
      • argsort
      • argwhere
      • as_complex
      • as_real
      • as_strided
      • as_tensor
      • asin
      • asinh
      • assign
      • atan
      • atan2
      • atan_
      • atanh
      • atleast_1d
      • atleast_2d
      • atleast_3d
      • baddbmm
      • baddbmm_
      • batch
      • bernoulli
      • bernoulli_
      • bincount
      • binomial
      • bitwise_and
      • bitwise_and_
      • bitwise_invert
      • bitwise_invert_
      • bitwise_left_shift
      • bitwise_left_shift_
      • bitwise_not
      • bitwise_not_
      • bitwise_or
      • bitwise_or_
      • bitwise_right_shift
      • bitwise_right_shift_
      • bitwise_xor
      • bitwise_xor_
      • block_diag
      • bmm
      • broadcast_shape
      • broadcast_shapes
      • broadcast_tensors
      • broadcast_to
      • bucketize
      • cartesian_prod
      • cast
      • cast_
      • cat
      • cauchy_
      • cdist
      • ceil
      • ceil_
      • chunk
      • clamp
      • clip_
      • clone
      • column_stack
      • combinations
      • complex
      • conj
      • copysign
      • copysign_
      • cos
      • cos_
      • cosh
      • count_nonzero
      • CPUPlace
      • create_parameter
      • crop
      • cross
      • CUDAPinnedPlace
      • CUDAPlace
      • cummax
      • cummin
      • cumprod
      • cumprod_
      • cumsum
      • cumsum_
      • cumulative_trapezoid
      • DataParallel
      • deg2rad
      • diag
      • diag_embed
      • diagflat
      • diagonal
      • diagonal_scatter
      • diff
      • digamma
      • digamma_
      • disable_signal_handler
      • disable_static
      • dist
      • div
      • div_
      • dot
      • dsplit
      • dstack
      • einsum
      • empty
      • empty_like
      • enable_grad
      • enable_static
      • eq
      • equal_
      • equal_all
      • erf
      • erf_
      • erfinv
      • erfinv_
      • exp
      • exp_
      • expand
      • expand_as
      • expm1
      • expm1_
      • eye
      • finfo
      • flatten
      • flatten_
      • flip
      • floor
      • floor_
      • floor_divide
      • floor_divide_
      • flops
      • fmax
      • fmin
      • frac
      • frac_
      • frexp
      • full
      • full_like
      • gammainc
      • gammainc_
      • gammaincc
      • gammaincc_
      • gammaln
      • gammaln_
      • gather
      • gather_nd
      • gcd
      • gcd_
      • geometric_
      • ger
      • get_autocast_dtype
      • get_autocast_gpu_dtype
      • get_cuda_rng_state
      • get_default_dtype
      • get_flags
      • get_rng_state
      • grad
      • greater_equal
      • greater_equal_
      • greater_than
      • greater_than_
      • gt
      • heaviside
      • histogram
      • histogram_bin_edges
      • histogramdd
      • hsplit
      • hstack
      • hypot
      • hypot_
      • i0
      • i0_
      • i0e
      • i1
      • i1e
      • iinfo
      • imag
      • in_dynamic_mode
      • increment
      • index_add
      • index_add_
      • index_fill
      • index_fill_
      • index_put
      • index_put_
      • index_sample
      • index_select
      • inner
      • is_autocast_enabled
      • is_complex
      • is_empty
      • is_floating_point
      • is_grad_enabled
      • is_integer
      • is_tensor
      • isclose
      • isfinite
      • isin
      • isinf
      • isnan
      • isneginf
      • isposinf
      • isreal
      • kron
      • kthvalue
      • LazyGuard
      • lcm
      • lcm_
      • ldexp
      • ldexp_
      • lerp
      • lerp_
      • less
      • less_
      • less_equal
      • less_equal_
      • less_than
      • less_than_
      • lgamma
      • lgamma_
      • linspace
      • load
      • log
      • log10
      • log10_
      • log1p
      • log2
      • log2_
      • log_
      • log_normal
      • log_normal_
      • logaddexp
      • logcumsumexp
      • logical_and
      • logical_and_
      • logical_not
      • logical_not_
      • logical_or
      • logical_or_
      • logical_xor
      • logit
      • logit_
      • logspace
      • logsumexp
      • masked_fill
      • masked_fill_
      • masked_scatter
      • masked_scatter_
      • masked_select
      • matmul
      • matrix_transpose
      • max
      • maximum
      • mean
      • median
      • meshgrid
      • min
      • minimum
      • mm
      • mod
      • mode
      • Model
      • moveaxis
      • msort
      • mul
      • multigammaln
      • multigammaln_
      • multinomial
      • multiplex
      • multiply
      • multiply_
      • mv
      • nan_to_num
      • nan_to_num_
      • nanmean
      • nanmedian
      • nanquantile
      • nansum
      • narrow
      • neg
      • neg_
      • nextafter
      • no_grad
      • nonzero
      • normal
      • normal_
      • not_equal
      • numel
      • ones
      • ones_like
      • ParamAttr
      • pdist
      • permute
      • poisson
      • polar
      • polygamma
      • polygamma_
      • positive
      • pow
      • pow_
      • prod
      • put_along_axis
      • put_along_axis_
      • quantile
      • rad2deg
      • rand
      • randint
      • randint_like
      • randn
      • randn_like
      • randperm
      • range
      • rank
      • ravel
      • real
      • reciprocal
      • reciprocal_
      • reduce_as
      • remainder
      • remainder_
      • renorm
      • renorm_
      • repeat_interleave
      • reshape
      • reshape_
      • roll
      • rot90
      • round
      • round_
      • row_stack
      • rsqrt
      • rsqrt_
      • save
      • scale
      • scale_
      • scatter
      • scatter_
      • scatter_nd
      • scatter_nd_add
      • searchsorted
      • seed
      • select_scatter
      • set_cuda_rng_state
      • set_default_dtype
      • set_flags
      • set_grad_enabled
      • set_printoptions
      • set_rng_state
      • sgn
      • shape
      • shard_index
      • sign
      • signbit
      • sin
      • sin_
      • sinc
      • sinc_
      • sinh
      • sinh_
      • slice
      • slice_scatter
      • softmax
      • sort
      • split
      • sqrt
      • sqrt_
      • square
      • square_
      • squeeze
      • squeeze_
      • stack
      • standard_normal
      • stanh
      • std
      • strided_slice
      • subtract
      • subtract_
      • sum
      • summary
      • swapaxes
      • t
      • t_
      • take
      • take_along_axis
      • tan
      • tan_
      • tanh
      • tanh_
      • tensor
      • Tensor
      • tensor_split
      • tensordot
      • tile
      • to_tensor
      • tolist
      • topk
      • trace
      • transpose_
      • trapezoid
      • tril
      • tril_
      • tril_indices
      • triu
      • triu_
      • triu_indices
      • true_divide
      • trunc
      • trunc_
      • unbind
      • unflatten
      • unfold
      • uniform
      • uniform_
      • unique
      • unique_consecutive
      • unsqueeze
      • unsqueeze_
      • unstack
      • vander
      • var
      • view
      • view_as
      • view_as_complex
      • view_as_real
      • vsplit
      • vstack
      • where
      • where_
      • zeros
      • zeros_like
    • paddle.amp
      • Overview
      • auto_cast
      • debugging
        • check_layer_numerics
        • check_numerics
        • collect_operator_stats
        • compare_accuracy
        • DebugMode
        • disable_operator_stats_collection
        • disable_tensor_checker
        • enable_operator_stats_collection
        • enable_tensor_checker
        • TensorCheckerConfig
      • decorate
      • GradScaler
      • is_bfloat16_supported
      • is_float16_supported
    • paddle.audio
      • Overview
      • backends
        • get_current_backend
        • list_available_backends
        • set_backend
      • datasets
        • ESC50
        • TESS
      • features
        • LogMelSpectrogram
        • MelSpectrogram
        • MFCC
        • Spectrogram
      • functional
        • compute_fbank_matrix
        • create_dct
        • fft_frequencies
        • get_window
        • hz_to_mel
        • mel_frequencies
        • mel_to_hz
        • power_to_db
      • info
      • load
      • save
    • paddle.autograd
      • Overview
      • backward
      • Function
      • hessian
      • jacobian
      • PyLayerContext
      • saved_tensors_hooks
    • paddle.callbacks
      • Overview
      • Callback
      • EarlyStopping
      • LRScheduler
      • ModelCheckpoint
      • ProgBarLogger
      • ReduceLROnPlateau
      • VisualDL
    • paddle.compat
      • Overview
      • max
      • median
      • min
      • nanmedian
      • sort
      • split
      • Unfold
    • paddle.device
      • Overview
      • cuda
        • current_stream
        • device_count
        • empty_cache
        • Event
        • get_device_capability
        • get_device_name
        • get_device_properties
        • max_memory_allocated
        • max_memory_reserved
        • memory_allocated
        • memory_reserved
        • reset_max_memory_allocated
        • reset_max_memory_reserved
        • Stream
        • stream_guard
        • synchronize
      • current_stream
      • device_guard
      • Event
      • get_all_custom_device_type
      • get_all_device_type
      • get_available_custom_device
      • get_available_device
      • get_cudnn_version
      • get_device
      • IPUPlace
      • is_compiled_with_cinn
      • is_compiled_with_cuda
      • is_compiled_with_custom_device
      • is_compiled_with_ipu
      • is_compiled_with_rocm
      • is_compiled_with_xpu
      • set_device
      • set_stream
      • Stream
      • stream_guard
      • synchronize
      • xpu
        • device_count
        • empty_cache
        • Event
        • max_memory_allocated
        • max_memory_reserved
        • memory_allocated
        • memory_reserved
        • memory_total
        • memory_used
        • reset_max_memory_allocated
        • reset_max_memory_reserved
        • set_debug_level
        • Stream
        • synchronize
      • XPUPlace
    • paddle.distributed
      • Overview
      • all_gather
      • all_gather_object
      • all_reduce
      • alltoall
      • alltoall_single
      • barrier
      • broadcast
      • broadcast_object_list
      • ColWiseParallel
      • destroy_process_group
      • DistAttr
      • DistModel
      • dtensor_from_fn
      • fleet
        • DistributedStrategy
        • Fleet
        • PaddleCloudRoleMaker
        • UserDefinedRoleMaker
        • UtilBase
        • utils
          • HDFSClient
          • LocalFS
          • recompute
      • get_backend
      • get_group
      • get_mesh
      • get_rank
      • get_world_size
      • gloo_barrier
      • gloo_init_parallel_env
      • gloo_release
      • init_parallel_env
      • InMemoryDataset
      • irecv
      • is_available
      • is_initialized
      • isend
      • launch
      • load_state_dict
      • local_map
      • LocalLayer
      • new_group
      • ParallelEnv
      • parallelize
      • Partial
      • Placement
      • PrepareLayerInput
      • PrepareLayerOutput
      • ProcessMesh
      • QueueDataset
      • recv
      • reduce
      • reduce_scatter
      • ReduceOp
      • ReduceType
      • Replicate
      • reshard
      • RowWiseParallel
      • rpc
        • get_all_worker_infos
        • get_current_worker_info
        • get_worker_info
        • init_rpc
        • rpc_async
        • rpc_sync
        • shutdown
      • save_state_dict
      • scatter
      • scatter_object_list
      • send
      • SequenceParallelBegin
      • SequenceParallelDisable
      • SequenceParallelEnable
      • SequenceParallelEnd
      • set_mesh
      • Shard
      • shard_dataloader
      • shard_layer
      • shard_optimizer
      • shard_scaler
      • shard_tensor
      • sharding
        • group_sharded_parallel
        • save_group_sharded_model
      • spawn
      • split
      • SplitPoint
      • Strategy
      • stream
        • all_gather
        • all_reduce
        • alltoall
        • alltoall_single
        • broadcast
        • recv
        • reduce
        • reduce_scatter
        • scatter
        • send
      • to_distributed
      • to_static
      • unshard_dtensor
      • utils
        • global_gather
        • global_scatter
      • wait
    • paddle.distribution
      • Overview
      • AbsTransform
      • AffineTransform
      • Bernoulli
      • Beta
      • Binomial
      • Categorical
      • Cauchy
      • ChainTransform
      • Chi2
      • ContinuousBernoulli
      • Dirichlet
      • Distribution
      • Exponential
      • ExponentialFamily
      • ExpTransform
      • Gamma
      • Geometric
      • Gumbel
      • Independent
      • IndependentTransform
      • kl_divergence
      • Laplace
      • LKJCholesky
      • LogNormal
      • Multinomial
      • MultivariateNormal
      • Normal
      • Poisson
      • PowerTransform
      • register_kl
      • ReshapeTransform
      • SigmoidTransform
      • SoftmaxTransform
      • StackTransform
      • StickBreakingTransform
      • StudentT
      • TanhTransform
      • Transform
      • TransformedDistribution
      • Uniform
    • paddle.fft
      • Overview
      • fft
      • fft2
      • fftfreq
      • fftn
      • fftshift
      • hfft
      • hfft2
      • hfftn
      • ifft
      • ifft2
      • ifftn
      • ifftshift
      • ihfft
      • ihfft2
      • ihfftn
      • irfft
      • irfft2
      • irfftn
      • rfft
      • rfft2
      • rfftfreq
      • rfftn
    • paddle.fluid
      • Overview
    • paddle.geometric
      • Overview
      • reindex_graph
      • reindex_heter_graph
      • sample_neighbors
      • segment_max
      • segment_mean
      • segment_min
      • segment_sum
      • send_u_recv
      • send_ue_recv
      • send_uv
      • weighted_sample_neighbors
    • paddle.hub
      • Overview
      • help
      • list
      • load
      • load_state_dict_from_url
    • paddle.incubate
      • asp
        • add_supported_layer
        • calculate_density
        • decorate
        • prune_model
        • reset_excluded_layers
        • set_excluded_layers
      • autograd
        • Overview
        • disable_prim
        • enable_prim
        • forward_grad
        • grad
        • Hessian
        • Jacobian
        • jvp
        • vjp
      • autotune
        • set_config
      • graph_khop_sampler
      • graph_reindex
      • graph_sample_neighbors
      • graph_send_recv
      • identity_loss
      • LookAhead
      • ModelAverage
      • nn
        • functional
          • fused_bias_dropout_residual_layer_norm
          • fused_dropout_add
          • fused_feedforward
          • fused_layer_norm
          • fused_linear
          • fused_linear_activation
          • fused_matmul_bias
          • fused_multi_head_attention
          • fused_multi_transformer
          • fused_rms_norm
          • fused_rotary_position_embedding
          • masked_multihead_attention
        • FusedBiasDropoutResidualLayerNorm
        • FusedDropoutAdd
        • FusedFeedForward
        • FusedLinear
        • FusedMultiHeadAttention
        • FusedTransformerEncoderLayer
      • optimizer
        • functional
          • minimize_bfgs
          • minimize_lbfgs
        • LBFGS
      • segment_max
      • segment_mean
      • segment_min
      • segment_sum
      • softmax_mask_fuse
      • softmax_mask_fuse_upper_triangle
      • xpu
        • resnet_block
          • resnet_basic_block
          • ResNetBasicBlock
    • paddle.io
      • Overview
      • BatchSampler
      • ChainDataset
      • ComposeDataset
      • ConcatDataset
      • DataLoader
      • Dataset
      • DistributedBatchSampler
      • get_worker_info
      • IterableDataset
      • random_split
      • RandomSampler
      • Sampler
      • SequenceSampler
      • Subset
      • SubsetRandomSampler
      • TensorDataset
      • WeightedRandomSampler
    • paddle.jit
      • Overview
      • enable_to_static
      • ignore_module
      • load
      • not_to_static
      • save
      • set_code_level
      • set_verbosity
      • to_static
      • TranslatedLayer
    • paddle.linalg
      • Overview
      • cholesky
      • cholesky_inverse
      • cholesky_solve
      • cond
      • corrcoef
      • cov
      • det
      • eig
      • eigh
      • eigvals
      • eigvalsh
      • householder_product
      • inv
      • lstsq
      • lu
      • lu_solve
      • lu_unpack
      • matmul
      • matrix_exp
      • matrix_norm
      • matrix_power
      • matrix_rank
      • multi_dot
      • norm
      • ormqr
      • pca_lowrank
      • pinv
      • qr
      • slogdet
      • solve
      • svd
      • svd_lowrank
      • svdvals
      • triangular_solve
      • vecdot
      • vector_norm
    • paddle.metric
      • Overview
      • Accuracy
      • accuracy
      • Auc
      • Metric
      • Precision
      • Recall
    • paddle.nn
      • Overview
      • AdaptiveAvgPool1D
      • AdaptiveAvgPool2D
      • AdaptiveAvgPool3D
      • AdaptiveLogSoftmaxWithLoss
      • AdaptiveMaxPool1D
      • AdaptiveMaxPool2D
      • AdaptiveMaxPool3D
      • AlphaDropout
      • AvgPool1D
      • AvgPool2D
      • AvgPool3D
      • BatchNorm
      • BatchNorm1D
      • BatchNorm2D
      • BatchNorm3D
      • BCELoss
      • BCEWithLogitsLoss
      • BeamSearchDecoder
      • Bilinear
      • BiRNN
      • CELU
      • ChannelShuffle
      • ClipGradByGlobalNorm
      • ClipGradByNorm
      • ClipGradByValue
      • Conv1D
      • Conv1DTranspose
      • Conv2D
      • Conv2DTranspose
      • Conv3D
      • Conv3DTranspose
      • CosineEmbeddingLoss
      • CosineSimilarity
      • CrossEntropyLoss
      • CTCLoss
      • Dropout
      • Dropout2D
      • Dropout3D
      • dynamic_decode
      • ELU
      • Embedding
      • FeatureAlphaDropout
      • Flatten
      • Fold
      • FractionalMaxPool2D
      • FractionalMaxPool3D
      • functional
        • adaptive_avg_pool1d
        • adaptive_avg_pool2d
        • adaptive_avg_pool3d
        • adaptive_log_softmax_with_loss
        • adaptive_max_pool1d
        • adaptive_max_pool2d
        • adaptive_max_pool3d
        • affine_grid
        • alpha_dropout
        • avg_pool1d
        • avg_pool2d
        • avg_pool3d
        • batch_norm
        • bilinear
        • binary_cross_entropy
        • binary_cross_entropy_with_logits
        • celu
        • channel_shuffle
        • class_center_sample
        • conv1d
        • conv1d_transpose
        • conv2d
        • conv2d_transpose
        • conv3d
        • conv3d_transpose
        • cosine_embedding_loss
        • cosine_similarity
        • cross_entropy
        • ctc_loss
        • dice_loss
        • dropout
        • dropout1d
        • dropout2d
        • dropout3d
        • elu
        • elu_
        • embedding
        • feature_alpha_dropout
        • fold
        • fractional_max_pool2d
        • fractional_max_pool3d
        • gather_tree
        • gaussian_nll_loss
        • gelu
        • glu
        • grid_sample
        • group_norm
        • gumbel_softmax
        • hardshrink
        • hardsigmoid
        • hardswish
        • hardtanh
        • hardtanh_
        • hinge_embedding_loss
        • hsigmoid_loss
        • instance_norm
        • interpolate
        • kl_div
        • l1_loss
        • label_smooth
        • layer_norm
        • leaky_relu
        • leaky_relu_
        • linear
        • local_response_norm
        • log_loss
        • log_sigmoid
        • log_softmax
        • lp_pool1d
        • lp_pool2d
        • margin_cross_entropy
        • margin_ranking_loss
        • max_pool1d
        • max_pool2d
        • max_pool3d
        • max_unpool1d
        • max_unpool2d
        • max_unpool3d
        • maxout
        • mish
        • mse_loss
        • multi_label_margin_loss
        • multi_label_soft_margin_loss
        • multi_margin_loss
        • nll_loss
        • normalize
        • npair_loss
        • one_hot
        • pad
        • pairwise_distance
        • pixel_shuffle
        • pixel_unshuffle
        • poisson_nll_loss
        • prelu
        • relu
        • relu6
        • relu_
        • rnnt_loss
        • rrelu
        • scaled_dot_product_attention
        • selu
        • sequence_mask
        • sigmoid
        • sigmoid_focal_loss
        • silu
        • smooth_l1_loss
        • soft_margin_loss
        • softmax
        • softmax_
        • softmax_with_cross_entropy
        • softplus
        • softshrink
        • softsign
        • sparse_attention
        • square_error_cost
        • swish
        • tanhshrink
        • temporal_shift
        • thresholded_relu
        • thresholded_relu_
        • triplet_margin_loss
        • triplet_margin_with_distance_loss
        • unfold
        • upsample
        • zeropad2d
      • GaussianNLLLoss
      • GELU
      • GLU
      • GroupNorm
      • GRU
      • GRUCell
      • Hardshrink
      • Hardsigmoid
      • Hardswish
      • Hardtanh
      • HingeEmbeddingLoss
      • HSigmoidLoss
      • Identity
      • init
        • calculate_gain
        • constant_
        • dirac_
        • eye_
        • kaiming_normal_
        • kaiming_uniform_
        • normal_
        • ones_
        • orthogonal_
        • trunc_normal_
        • uniform_
        • xavier_normal_
        • xavier_uniform_
        • zeros_
      • initializer
        • Assign
        • Bilinear
        • calculate_gain
        • Constant
        • Dirac
        • KaimingNormal
        • KaimingUniform
        • Normal
        • Orthogonal
        • set_global_initializer
        • TruncatedNormal
        • Uniform
        • XavierNormal
        • XavierUniform
      • InstanceNorm1D
      • InstanceNorm2D
      • InstanceNorm3D
      • KLDivLoss
      • L1Loss
      • Layer
      • LayerDict
      • LayerList
      • LayerNorm
      • LeakyReLU
      • Linear
      • LocalResponseNorm
      • LogSigmoid
      • LogSoftmax
      • LPPool1D
      • LPPool2D
      • LSTM
      • LSTMCell
      • MarginRankingLoss
      • Maxout
      • MaxPool1D
      • MaxPool2D
      • MaxPool3D
      • MaxUnPool1D
      • MaxUnPool2D
      • MaxUnPool3D
      • Mish
      • MSELoss
      • MultiHeadAttention
      • MultiLabelMarginLoss
      • MultiLabelSoftMarginLoss
      • MultiMarginLoss
      • NLLLoss
      • Pad1D
      • Pad2D
      • Pad3D
      • PairwiseDistance
      • parameter
        • Parameter
      • ParameterDict
      • ParameterList
      • PixelShuffle
      • PixelUnshuffle
      • PoissonNLLLoss
      • PReLU
      • quant
        • llm_int8_linear
        • weight_only_linear
        • weight_quantize
      • ReLU
      • ReLU6
      • RNN
      • RNNCellBase
      • RNNTLoss
      • RReLU
      • SELU
      • Sequential
      • Sigmoid
      • Silu
      • SimpleRNN
      • SimpleRNNCell
      • SmoothL1Loss
      • SoftMarginLoss
      • Softmax
      • Softmax2D
      • Softplus
      • Softshrink
      • Softsign
      • SpectralNorm
      • Swish
      • SyncBatchNorm
      • Tanh
      • Tanhshrink
      • ThresholdedReLU
      • Transformer
      • TransformerDecoder
      • TransformerDecoderLayer
      • TransformerEncoder
      • TransformerEncoderLayer
      • TripletMarginLoss
      • TripletMarginWithDistanceLoss
      • Unflatten
      • Unfold
      • Upsample
      • UpsamplingBilinear2D
      • UpsamplingNearest2D
      • utils
        • clip_grad_norm_
        • clip_grad_value_
        • parameters_to_vector
        • remove_weight_norm
        • spectral_norm
        • vector_to_parameters
        • weight_norm
      • ZeroPad1D
      • ZeroPad2D
      • ZeroPad3D
    • paddle.onnx
      • export
    • paddle.optimizer
      • Overview
      • Adadelta
      • Adagrad
      • Adam
      • Adamax
      • AdamW
      • ASGD
      • Lamb
      • LBFGS
      • lr
        • CosineAnnealingDecay
        • CosineAnnealingWarmRestarts
        • CyclicLR
        • ExponentialDecay
        • InverseTimeDecay
        • LambdaDecay
        • LinearLR
        • LinearWarmup
        • LRScheduler
        • MultiplicativeDecay
        • MultiStepDecay
        • NaturalExpDecay
        • NoamDecay
        • OneCycleLR
        • PiecewiseDecay
        • PolynomialDecay
        • ReduceOnPlateau
        • StepDecay
      • Momentum
      • NAdam
      • Optimizer
      • RAdam
      • RMSProp
      • Rprop
      • SGD
    • paddle.profiler
      • Overview
      • export_chrome_tracing
      • export_protobuf
      • load_profiler_result
      • make_scheduler
      • Profiler
      • ProfilerState
      • ProfilerTarget
      • RecordEvent
      • SortedKeys
      • SummaryView
    • paddle.rand_like
      • html
    • paddle.regularizer
      • L1Decay
      • L2Decay
    • paddle.signal
      • Overview
      • istft
      • stft
    • paddle.sparse
      • Overview
      • abs
      • add
      • addmm
      • asin
      • asinh
      • atan
      • atanh
      • cast
      • coalesce
      • deg2rad
      • divide
      • expm1
      • is_same_shape
      • isnan
      • log1p
      • mask_as
      • masked_matmul
      • matmul
      • multiply
      • mv
      • neg
      • nn
        • BatchNorm
        • Conv2D
        • Conv3D
        • functional
          • attention
          • conv2d
          • conv3d
          • leaky_relu
          • max_pool3d
          • relu
          • relu6
          • softmax
          • subm_conv2d
          • subm_conv3d
        • LeakyReLU
        • MaxPool3D
        • ReLU
        • ReLU6
        • Softmax
        • SubmConv2D
        • SubmConv3D
        • SyncBatchNorm
      • pca_lowrank
      • pow
      • rad2deg
      • reshape
      • sin
      • sinh
      • slice
      • sparse_coo_tensor
      • sparse_csr_tensor
      • sqrt
      • square
      • subtract
      • sum
      • tan
      • tanh
      • transpose
    • paddle.special
      • Overview
      • logsumexp
    • paddle.static
      • Overview
      • accuracy
      • append_backward
      • auc
      • BuildStrategy
      • CompiledProgram
      • cpu_places
      • create_global_var
      • ctr_metric_bundle
      • cuda_places
      • data
      • default_main_program
      • default_startup_program
      • deserialize_persistables
      • deserialize_program
      • device_guard
      • Executor
      • ExponentialMovingAverage
      • global_scope
      • gradients
      • InputSpec
      • ipu_shard_guard
      • IpuCompiledProgram
      • IpuStrategy
      • load
      • load_from_file
      • load_inference_model
      • load_program_state
      • name_scope
      • nn
        • batch_norm
        • bilinear_tensor_product
        • case
        • cond
        • conv2d
        • conv2d_transpose
        • conv3d
        • conv3d_transpose
        • data_norm
        • deform_conv2d
        • embedding
        • fc
        • group_norm
        • instance_norm
        • layer_norm
        • nce
        • prelu
        • row_conv
        • sequence_conv
        • sequence_expand
        • sequence_first_step
        • sequence_last_step
        • sequence_pool
        • sequence_softmax
        • sparse_embedding
        • spectral_norm
        • static_pylayer
        • switch_case
        • while_loop
      • normalize_program
      • Print
      • Program
      • program_guard
      • py_func
      • save
      • save_inference_model
      • save_to_file
      • scope_guard
      • serialize_persistables
      • serialize_program
      • set_ipu_shard
      • set_program_state
      • Variable
      • WeightNormParamAttr
      • xpu_places
    • paddle.sysconfig
      • get_include
      • get_lib
    • paddle.text
      • Overview
      • Conll05st
      • Imdb
      • Imikolov
      • Movielens
      • UCIHousing
      • viterbi_decode
      • ViterbiDecoder
      • WMT14
      • WMT16
    • paddle.utils
      • Overview
      • cpp_extension
        • CppExtension
        • CUDAExtension
        • get_build_directory
        • load
        • setup
      • deprecated
      • dlpack
        • from_dlpack
        • to_dlpack
      • download
        • get_weights_path_from_url
      • require_version
      • run_check
      • try_import
      • unique_name
        • generate
        • guard
        • switch
    • paddle.version
      • Overview
      • cuda
      • cuda_archs
      • cudnn
      • nccl
      • show
      • tensorrt
      • xpu
      • xpu_xccl
    • paddle.vision
      • Overview
      • datasets
        • Cifar10
        • Cifar100
        • DatasetFolder
        • FashionMNIST
        • Flowers
        • ImageFolder
        • MNIST
        • VOC2012
      • get_image_backend
      • image_load
      • models
        • alexnet
        • AlexNet
        • DenseNet
        • densenet121
        • densenet161
        • densenet169
        • densenet201
        • densenet264
        • GoogLeNet
        • googlenet
        • inception_v3
        • InceptionV3
        • LeNet
        • mobilenet_v1
        • mobilenet_v2
        • mobilenet_v3_large
        • mobilenet_v3_small
        • MobileNetV1
        • MobileNetV2
        • MobileNetV3Large
        • MobileNetV3Small
        • ResNet
        • resnet101
        • resnet152
        • resnet18
        • resnet34
        • resnet50
        • resnext101_32x4d
        • resnext101_64x4d
        • resnext152_32x4d
        • resnext152_64x4d
        • resnext50_32x4d
        • resnext50_64x4d
        • shufflenet_v2_swish
        • shufflenet_v2_x0_25
        • shufflenet_v2_x0_33
        • shufflenet_v2_x0_5
        • shufflenet_v2_x1_0
        • shufflenet_v2_x1_5
        • shufflenet_v2_x2_0
        • ShuffleNetV2
        • SqueezeNet
        • squeezenet1_0
        • squeezenet1_1
        • VGG
        • vgg11
        • vgg13
        • vgg16
        • vgg19
        • wide_resnet101_2
        • wide_resnet50_2
      • ops
        • box_coder
        • decode_jpeg
        • deform_conv2d
        • DeformConv2D
        • distribute_fpn_proposals
        • generate_proposals
        • nms
        • prior_box
        • psroi_pool
        • PSRoIPool
        • read_file
        • roi_align
        • roi_pool
        • RoIAlign
        • RoIPool
        • yolo_box
        • yolo_loss
      • set_image_backend
      • transforms
        • adjust_brightness
        • adjust_contrast
        • adjust_hue
        • affine
        • BaseTransform
        • BrightnessTransform
        • center_crop
        • CenterCrop
        • ColorJitter
        • Compose
        • ContrastTransform
        • crop
        • erase
        • Grayscale
        • hflip
        • HueTransform
        • Normalize
        • normalize
        • pad
        • Pad
        • perspective
        • RandomAffine
        • RandomCrop
        • RandomErasing
        • RandomHorizontalFlip
        • RandomPerspective
        • RandomResizedCrop
        • RandomRotation
        • RandomVerticalFlip
        • Resize
        • resize
        • rotate
        • SaturationTransform
        • to_grayscale
        • to_tensor
        • ToTensor
        • Transpose
        • vflip
  • 贡献指南
    • 概述
    • 代码贡献流程
    • 新增 API 开发&提交流程
      • 贡献前阅读
      • 开发 API Python 端
      • 开发 C++ 算子
      • 分布式算子开发
      • API 设计和命名规范
      • API 文档书写规范
      • API 单测开发及验收规范
    • 算子性能优化 提交流程
      • 算子性能优化 方法介绍
      • 算子性能优化 验收规范
      • Kernel Primitive API
        • API 介绍
          • API 介绍 - IO
          • API 介绍 - Compute
          • API 介绍 - OpFunc
        • API 示例
          • 示例 - ElementwiseAdd
          • 示例 - Reduce
          • 示例 - Model
    • 算子数据类型扩展 提交流程
      • 算子数据类型扩展 验收规范
    • 低精度算子开发贡献指南
      • 低精度算子支持开发规范
      • 低精度算子单测开发规范
    • 曙光开发指南
      • 曙光智算平台-Paddle 源码编译和单测执行
      • Paddle 适配 C86 加速卡详解
      • Paddle 框架下 ROCm(HIP)算子单测修复指导
    • 硬件接入飞桨后端指南
      • 硬件接入飞桨后端方案介绍
      • 训练硬件 Custom Device 接入方案介绍
      • 自定义 Runtime
        • 数据类型
        • Device 接口
        • Memory 接口
        • Stream 接口
        • Event 接口
        • 集合通讯接口
        • Profiler 接口
      • 自定义 Kernel
        • Kernel 函数声明
        • Kernel 实现接口
          • Context API
          • Tensor API
          • Exception API
        • Kernel 注册接口
      • 新硬件接入示例
    • 文档贡献指南
    • 规范和参考信息
      • 代码规范
      • 报错信息文案书写规范
      • 代码风格检查指南
      • Paddle CI 测试详解
      • Python 文档示例代码书写规范
      • Python 类型提示标注规范
  • 常见问题与解答
    • 2.0 升级常见问题
    • 安装常见问题
    • 数据及其加载常见问题
    • 组网、训练、评估常见问题
    • 模型保存常见问题
    • 参数调整常见问题
    • 分布式训练常见问题
    • 其他常见问题
  • 3.2 Release Note
  • concatenate
    • paddle.concatenate()
  • »
  • concatenate
  • 在 GitHub 上编辑

concatenate

paddle. concatenate ( x, axis=0, name=None, *, out=None ) [源代码] 

concat 的别名,请参考 concat。

使用本API的教程文档¶

  • Limitations
  • 使用 VisualDL 可视化模型,数据和训练
  • PyTorch 写法,dim=0
  • PyTorch 写法
  • PyTorch 写法
  • PyTorch 写法,dim=0
  • Pytorch 写法
  • Pytorch 写法
  • 高阶自动微分功能支持科学计算