You need to enable JavaScript to run this app.
\u200E
开始使用
特性
文档
API
使用指南
工具平台
工具
AutoDL
PaddleHub
PARL
ERNIE
全部
平台
AI Studio
EasyDL
EasyEdge
资源
模型和数据集
学习资料
应用案例
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安装
Conda安装
Linux下的Conda安装
MacOS下的Conda安装
Windows下的Conda安装
Docker安装
Linux下的Docker安装
MacOS下的Docker安装
从源码编译
Linux下从源码编译
MacOS下从源码编译
Windows下从源码编译
飞腾/鲲鹏下从源码编译
申威下从源码编译
兆芯下从源码编译
昆仑XPU芯片安装及运行飞桨
海光DCU芯片运行飞桨
附录
使用指南
整体介绍
基本概念
Tensor概念介绍
Paddle中的模型与层
广播 (broadcasting)
自动微分机制介绍
自动混合精度训练
梯度裁剪方式介绍
升级指南
版本迁移工具
模型开发
10分钟快速上手飞桨(PaddlePaddle)
数据集定义与加载
数据预处理
模型组网
训练与预测验证
单机多卡训练
自定义指标
模型保存与载入
模型导出ONNX协议
VisualDL 工具
VisualDL 工具简介
VisualDL 使用指南
动态图转静态图
使用样例
转换原理
支持语法
案例解析
报错调试
推理部署
服务器部署 — Paddle Inference
移动端/嵌入式部署 — Paddle Lite
模型压缩 — PaddleSlim
分布式训练
分布式训练快速开始
使用FleetAPI进行分布式训练
自定义算子
自定义原生算子
原生算子开发注意事项
自定义外部算子
自定义Python算子
Kernel Primitive API
API 介绍
API 介绍 - IO
API 介绍 - Compute
API 介绍 - OpFunc
API 示例
示例 - ElementwiseAdd
示例 - Reduce
性能调优
飞桨模型量化
算子映射
Paddle 1.8 与 Paddle 2.0 API映射表
PyTorch-PaddlePaddle API映射表
硬件支持
飞桨产品硬件支持表
昆仑XPU芯片运行飞桨
飞桨对昆仑XPU芯片的支持
飞桨框架昆仑XPU版安装说明
飞桨框架昆仑XPU版训练示例
飞桨预测库昆仑XPU版安装及使用示例
海光DCU芯片运行飞桨
飞桨框架ROCm版支持模型
飞桨框架ROCm版安装说明
飞桨框架ROCm版训练示例
飞桨框架ROCm版预测示例
昇腾NPU芯片运行飞桨
飞桨框架昇腾NPU版安装说明
飞桨框架昇腾NPU版训练示例
参与开发
本地开发指南
提交PR注意事项
FAQ
环境变量FLAGS
cudnn
数值计算
调试
check nan inf工具
设备管理
分布式
执行器
存储管理
昇腾NPU
其他
应用实践
快速上手
hello paddle: 从普通程序走向机器学习程序
动态图
飞桨高层API使用指南
模型保存及加载
使用线性回归预测波士顿房价
计算机视觉
使用LeNet在MNIST数据集实现图像分类
使用卷积神经网络进行图像分类
基于图片相似度的图片搜索
基于U-Net卷积神经网络实现宠物图像分割
通过OCR实现验证码识别
通过Sub-Pixel实现图像超分辨率
人脸关键点检测
点云处理:实现PointNet点云分类
自然语言处理
用N-Gram模型在莎士比亚文集中训练word embedding
IMDB 数据集使用BOW网络的文本分类
使用预训练的词向量完成文本分类任务
使用注意力机制的LSTM的机器翻译
使用序列到序列模型完成数字加法
推荐
使用协同过滤实现电影推荐
强化学习
强化学习——Actor Critic Method
强化学习——Advantage Actor-Critic(A2C)
强化学习——Deep Deterministic Policy Gradient (DDPG)
时序数据
通过AutoEncoder实现时序数据异常检测
动转静
使用动转静完成以图搜图
API 文档
paddle
Overview
abs
acos
add
add_n
addmm
all
allclose
any
arange
argmax
argmin
argsort
asin
assign
atan
atan2
batch
bernoulli
bincount
bitwise_and
bitwise_not
bitwise_or
bitwise_xor
bmm
broadcast_shape
broadcast_tensors
broadcast_to
cast
ceil
chunk
clip
concat
conj
cos
cosh
CPUPlace
crop
cross
CUDAPinnedPlace
CUDAPlace
cumprod
cumsum
DataParallel
diag
diagflat
diagonal
digamma
disable_signal_handler
disable_static
dist
divide
dot
einsum
empty
empty_like
enable_static
equal
equal_all
erf
exp
expand
expand_as
expm1
eye
flatten
flip
floor
floor_divide
flops
full
full_like
gather
gather_nd
get_cuda_rng_state
get_default_dtype
get_flags
grad
greater_equal
greater_than
histogram
imag
in_dynamic_mode
increment
index_sample
index_select
is_empty
is_tensor
isfinite
isinf
isnan
kron
less_equal
less_than
lgamma
linspace
load
log
log10
log1p
log2
logical_and
logical_not
logical_or
logical_xor
logsumexp
masked_select
matmul
max
maximum
mean
median
meshgrid
min
minimum
mm
mod
Model
multinomial
multiplex
multiply
mv
neg
no_grad
nonzero
normal
not_equal
NPUPlace
numel
ones
ones_like
ParamAttr
pow
prod
rand
randint
randn
randperm
rank
real
reciprocal
reshape
reshape_
roll
round
rsqrt
save
scale
scatter
scatter_
scatter_nd
scatter_nd_add
searchsorted
seed
set_cuda_rng_state
set_default_dtype
set_flags
set_grad_enabled
set_printoptions
shape
shard_index
sign
sin
sinh
slice
sort
split
sqrt
square
squeeze
squeeze_
stack
standard_normal
stanh
std
strided_slice
subtract
sum
summary
t
tan
tanh
tanh_
Tensor
tensordot
tile
to_tensor
tolist
topk
trace
transpose
tril
triu
trunc
unbind
uniform
unique
unique_consecutive
unsqueeze
unsqueeze_
unstack
var
where
zeros
zeros_like
paddle.amp
Overview
auto_cast
decorate
GradScaler
paddle.autograd
backward
PyLayer
PyLayerContext
paddle.callbacks
Overview
Callback
EarlyStopping
LRScheduler
ModelCheckpoint
ProgBarLogger
ReduceLROnPlateau
VisualDL
paddle.compat
floor_division
get_exception_message
long_type
round
to_bytes
to_text
paddle.device
cuda
current_stream
device_count
empty_cache
Event
get_device_capability
get_device_name
get_device_properties
Stream
stream_guard
synchronize
get_cudnn_version
get_device
is_compiled_with_cuda
is_compiled_with_npu
is_compiled_with_rocm
is_compiled_with_xpu
set_device
XPUPlace
paddle.distributed
Overview
all_gather
all_reduce
alltoall
barrier
broadcast
fleet
DistributedStrategy
Fleet
PaddleCloudRoleMaker
UserDefinedRoleMaker
UtilBase
utils
HDFSClient
LocalFS
recompute
get_group
get_rank
get_world_size
gloo_barrier
gloo_init_parallel_env
gloo_release
init_parallel_env
InMemoryDataset
launch
new_group
ParallelEnv
QueueDataset
recv
reduce
ReduceOp
scatter
send
spawn
split
utils
global_gather
global_scatter
wait
paddle.distribution
Overview
Categorical
Distribution
Normal
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
clip
ErrorClipByValue
set_gradient_clip
create_lod_tensor
create_random_int_lodtensor
cuda_pinned_places
data
DataFeedDesc
DataFeeder
dataset
DatasetFactory
InMemoryDataset
QueueDataset
dygraph
BilinearTensorProduct
Conv2D
Conv2DTranspose
Conv3D
Conv3DTranspose
Dropout
Embedding
enabled
GroupNorm
GRUCell
GRUUnit
LambdaDecay
LayerNorm
Linear
load_dygraph
LSTMCell
MultiStepDecay
NCE
Pool2D
PRelu
prepare_context
ReduceLROnPlateau
save_dygraph
StepDecay
TreeConv
evaluator
ChunkEvaluator
DetectionMAP
EditDistance
initializer
Constant
ConstantInitializer
MSRA
MSRAInitializer
Normal
NumpyArrayInitializer
TruncatedNormal
Uniform
Xavier
io
get_program_parameter
get_program_persistable_vars
load_params
load_persistables
load_vars
PyReader
save_params
save_persistables
save_vars
shuffle
layers
adaptive_pool2d
adaptive_pool3d
add_position_encoding
affine_channel
affine_grid
anchor_generator
argmax
argmin
argsort
array_length
array_read
array_write
autoincreased_step_counter
BasicDecoder
beam_search
beam_search_decode
bipartite_match
box_clip
box_coder
box_decoder_and_assign
bpr_loss
brelu
Categorical
center_loss
collect_fpn_proposals
concat
continuous_value_model
cosine_decay
create_array
create_py_reader_by_data
create_tensor
crop
cross_entropy
ctc_greedy_decoder
cumsum
data
DecodeHelper
Decoder
deformable_conv
deformable_roi_pooling
density_prior_box
detection_output
diag
distribute_fpn_proposals
double_buffer
dropout
dynamic_gru
dynamic_lstm
dynamic_lstmp
DynamicRNN
edit_distance
elementwise_add
elementwise_div
elementwise_floordiv
elementwise_max
elementwise_min
elementwise_mod
elementwise_pow
elementwise_sub
elu
embedding
equal
expand
expand_as
exponential_decay
eye
fc
fill_constant
filter_by_instag
flatten
fsp_matrix
gather
gather_nd
gaussian_random
gelu
generate_mask_labels
generate_proposal_labels
generate_proposals
get_tensor_from_selected_rows
greater_equal
greater_than
GreedyEmbeddingHelper
grid_sampler
gru_unit
GRUCell
hard_shrink
hard_sigmoid
hard_swish
hash
hsigmoid
huber_loss
IfElse
im2sequence
image_resize
image_resize_short
inplace_abn
inverse_time_decay
iou_similarity
isfinite
kldiv_loss
l2_normalize
label_smooth
leaky_relu
less_equal
less_than
linear_chain_crf
linear_lr_warmup
locality_aware_nms
lod_append
lod_reset
lrn
lstm
lstm_unit
LSTMCell
margin_rank_loss
matmul
matrix_nms
maxout
mean
merge_selected_rows
mse_loss
mul
multiclass_nms
MultivariateNormalDiag
natural_exp_decay
noam_decay
Normal
not_equal
one_hot
ones
ones_like
pad
pad2d
pad_constant_like
piecewise_decay
pixel_shuffle
polygon_box_transform
polynomial_decay
pool2d
pool3d
prior_box
prroi_pool
psroi_pool
py_reader
random_crop
range
rank_loss
read_file
reduce_all
reduce_any
reduce_max
reduce_mean
reduce_min
reduce_prod
reduce_sum
relu
relu6
reorder_lod_tensor_by_rank
reshape
resize_bilinear
resize_nearest
resize_trilinear
retinanet_detection_output
retinanet_target_assign
reverse
rnn
RNNCell
roi_align
roi_perspective_transform
roi_pool
rpn_target_assign
SampleEmbeddingHelper
sampling_id
scatter
selu
shuffle_channel
sigmoid_cross_entropy_with_logits
sigmoid_focal_loss
sign
similarity_focus
size
smooth_l1
soft_relu
softmax
softshrink
space_to_depth
split
squeeze
ssd_loss
stack
StaticRNN
strided_slice
sum
sums
swish
Switch
target_assign
teacher_student_sigmoid_loss
tensor_array_to_tensor
thresholded_relu
topk
TrainingHelper
Uniform
uniform_random
unique
unique_with_counts
unsqueeze
warpctc
where
While
yolo_box
yolov3_loss
zeros
zeros_like
metrics
Accuracy
Auc
ChunkEvaluator
CompositeMetric
DetectionMAP
EditDistance
MetricBase
Precision
Recall
nets
glu
img_conv_group
scaled_dot_product_attention
sequence_conv_pool
simple_img_conv_pool
one_hot
optimizer
MomentumOptimizer
SGDOptimizer
profiler
cuda_profiler
profiler
reset_profiler
start_profiler
stop_profiler
reader
PyReader
regularizer
L1DecayRegularizer
L2DecayRegularizer
require_version
transpiler
DistributeTranspiler
DistributeTranspilerConfig
HashName
memory_optimize
release_memory
paddle.hub
Overview
help
list
load
paddle.incubate
graph_send_recv
LookAhead
ModelAverage
nn
functional
fused_feedforward
fused_multi_head_attention
FusedFeedForward
FusedMultiHeadAttention
FusedTransformerEncoderLayer
segment_max
segment_mean
segment_min
segment_sum
softmax_mask_fuse
softmax_mask_fuse_upper_triangle
paddle.io
Overview
BatchSampler
ChainDataset
ComposeDataset
DataLoader
Dataset
DistributedBatchSampler
get_worker_info
IterableDataset
random_split
RandomSampler
Sampler
SequenceSampler
Subset
TensorDataset
WeightedRandomSampler
paddle.jit
Overview
load
not_to_static
ProgramTranslator
save
set_code_level
set_verbosity
to_static
TracedLayer
TranslatedLayer
paddle.linalg
Overview
cholesky
cond
det
eig
eigh
eigvals
eigvalsh
inv
matrix_power
matrix_rank
multi_dot
norm
pinv
qr
slogdet
solve
svd
triangular_solve
paddle.metric
Overview
Accuracy
accuracy
Auc
Metric
Precision
Recall
paddle.nn
Overview
AdaptiveAvgPool1D
AdaptiveAvgPool2D
AdaptiveAvgPool3D
AdaptiveMaxPool1D
AdaptiveMaxPool2D
AdaptiveMaxPool3D
AlphaDropout
AvgPool1D
AvgPool2D
AvgPool3D
BatchNorm
BatchNorm1D
BatchNorm2D
BatchNorm3D
BCELoss
BCEWithLogitsLoss
BeamSearchDecoder
Bilinear
BiRNN
ClipGradByGlobalNorm
ClipGradByNorm
ClipGradByValue
Conv1D
Conv1DTranspose
Conv2D
Conv2DTranspose
Conv3D
Conv3DTranspose
CosineSimilarity
CrossEntropyLoss
CTCLoss
Dropout
Dropout2D
Dropout3D
dynamic_decode
ELU
Embedding
Flatten
functional
adaptive_avg_pool1d
adaptive_avg_pool2d
adaptive_avg_pool3d
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
class_center_sample
conv1d
conv1d_transpose
conv2d
conv2d_transpose
conv3d
conv3d_transpose
cosine_similarity
cross_entropy
ctc_loss
diag_embed
dice_loss
dropout
dropout2d
dropout3d
elu
elu_
embedding
gather_tree
gelu
glu
grid_sample
gumbel_softmax
hardshrink
hardsigmoid
hardswish
hardtanh
hsigmoid_loss
instance_norm
interpolate
kl_div
l1_loss
label_smooth
layer_norm
leaky_relu
linear
local_response_norm
log_loss
log_sigmoid
log_softmax
margin_cross_entropy
margin_ranking_loss
max_pool1d
max_pool2d
max_pool3d
max_unpool2d
maxout
mse_loss
nll_loss
normalize
npair_loss
one_hot
pad
pixel_shuffle
prelu
relu
relu6
relu_
selu
sequence_mask
sigmoid
sigmoid_focal_loss
silu
smooth_l1_loss
softmax
softmax_
softmax_with_cross_entropy
softplus
softshrink
softsign
sparse_attention
square_error_cost
swish
tanhshrink
temporal_shift
thresholded_relu
unfold
upsample
GELU
GroupNorm
GRU
GRUCell
Hardshrink
Hardsigmoid
Hardswish
Hardtanh
HSigmoidLoss
initializer
Assign
Bilinear
Constant
KaimingNormal
KaimingUniform
Normal
set_global_initializer
TruncatedNormal
Uniform
XavierNormal
XavierUniform
InstanceNorm1D
InstanceNorm2D
InstanceNorm3D
KLDivLoss
L1Loss
Layer
LayerDict
LayerList
LayerNorm
LeakyReLU
Linear
LocalResponseNorm
LogSigmoid
LogSoftmax
LSTM
LSTMCell
MarginRankingLoss
Maxout
MaxPool1D
MaxPool2D
MaxPool3D
MaxUnPool2D
MSELoss
MultiHeadAttention
NLLLoss
Pad1D
Pad2D
Pad3D
PairwiseDistance
ParameterList
PixelShuffle
PReLU
ReLU
ReLU6
RNN
RNNCellBase
SELU
Sequential
Sigmoid
Silu
SimpleRNN
SimpleRNNCell
SmoothL1Loss
Softmax
Softplus
Softshrink
Softsign
SpectralNorm
Swish
SyncBatchNorm
Tanh
Tanhshrink
ThresholdedReLU
Transformer
TransformerDecoder
TransformerDecoderLayer
TransformerEncoder
TransformerEncoderLayer
Unfold
Upsample
UpsamplingBilinear2D
UpsamplingNearest2D
utils
remove_weight_norm
spectral_norm
weight_norm
paddle.onnx
export
paddle.optimizer
Overview
Adadelta
Adagrad
Adam
Adamax
AdamW
Lamb
lr
CosineAnnealingDecay
ExponentialDecay
InverseTimeDecay
LambdaDecay
LinearWarmup
LRScheduler
MultiStepDecay
NaturalExpDecay
NoamDecay
PiecewiseDecay
PolynomialDecay
ReduceOnPlateau
StepDecay
Momentum
Optimizer
RMSProp
SGD
paddle.regularizer
L1Decay
L2Decay
paddle.signal
Overview
istft
stft
paddle.static
Overview
accuracy
append_backward
auc
BuildStrategy
CompiledProgram
cpu_places
create_global_var
create_parameter
cuda_places
data
default_main_program
default_startup_program
deserialize_persistables
deserialize_program
device_guard
ExecutionStrategy
Executor
ExponentialMovingAverage
global_scope
gradients
InputSpec
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
crf_decoding
data_norm
deform_conv2d
embedding
fc
group_norm
instance_norm
layer_norm
multi_box_head
nce
prelu
row_conv
sequence_concat
sequence_conv
sequence_enumerate
sequence_expand
sequence_expand_as
sequence_first_step
sequence_last_step
sequence_pad
sequence_pool
sequence_reshape
sequence_reverse
sequence_scatter
sequence_slice
sequence_softmax
sequence_unpad
sparse_embedding
spectral_norm
switch_case
while_loop
normalize_program
ParallelExecutor
Print
Program
program_guard
py_func
save
save_inference_model
save_to_file
scope_guard
serialize_persistables
serialize_program
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
run_check
unique_name
generate
guard
switch
paddle.version
Overview
cuda
cudnn
paddle.vision
Overview
datasets
Cifar10
Cifar100
DatasetFolder
FashionMNIST
Flowers
ImageFolder
MNIST
VOC2012
get_image_backend
image_load
models
LeNet
mobilenet_v1
mobilenet_v2
MobileNetV1
MobileNetV2
ResNet
resnet101
resnet152
resnet18
resnet34
resnet50
VGG
vgg11
vgg13
vgg16
vgg19
ops
deform_conv2d
DeformConv2D
psroi_pool
PSRoIPool
roi_align
roi_pool
RoIAlign
RoIPool
yolo_box
yolo_loss
set_image_backend
transforms
adjust_brightness
adjust_contrast
adjust_hue
BaseTransform
BrightnessTransform
center_crop
CenterCrop
ColorJitter
Compose
ContrastTransform
crop
Grayscale
hflip
HueTransform
normalize
Normalize
Pad
pad
RandomCrop
RandomHorizontalFlip
RandomResizedCrop
RandomRotation
RandomVerticalFlip
Resize
resize
rotate
SaturationTransform
to_grayscale
to_tensor
ToTensor
Transpose
vflip
常见问题与解答
2.0 升级常见问题
安装常见问题
数据及其加载常见问题
组网、训练、评估常见问题
模型保存常见问题
参数调整常见问题
分布式训练常见问题
其他常见问题
2.2.2 Release Note
get_lib
返回
代码示例
»
get_lib
在 GitHub 上修改
get_lib
¶
paddle.sysconfig.
get_lib
(
)
[源代码]
¶
获取包含libpadle_framework的目录。
返回
¶
字符串类型的文件目录。
代码示例
¶
import
paddle
include_dir
=
paddle
.
sysconfig
.
get_lib
()