Caffe-Fluid 常用层对应表

本文档梳理了 Caffe 常用 Layer 与 PaddlePaddle API 对应关系和差异分析。根据文档对应关系,有 Caffe 使用经验的用户,可根据对应关系,快速熟悉 PaddlePaddle 的接口使用。

序号

Caffe Layer

Fluid 接口

备注

1

AbsVal

cn_api_fluid_layers_abs

功能一致

2

Accuracy

cn_api_fluid_layers_accuracy

差异对比

3

ArgMax

cn_api_fluid_layers_argmax

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

4

BatchNorm

cn_api_fluid_layers_batch_norm

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

5

BNLL

cn_api_fluid_layers_softplus

功能一致

6

Concat

cn_api_fluid_layers_concat

功能一致

7

Convolution

cn_api_fluid_layers_conv2d

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

8

Crop

cn_api_fluid_layers_crop

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

9

Deconvolution

cn_api_fluid_layers_conv2d_transpose

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

10

Dropout

cn_api_fluid_layers_dropout

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

11

Eltwise

无相应接口

Fluid 实现

12

ELU

cn_api_fluid_layers_elu

功能一致

13

EuclideanLoss

cn_api_fluid_layers_square_error_cost

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

14

Exp

cn_api_fluid_layers_exp

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

15

Flatten

cn_api_fluid_layers_reshape

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

16

InnerProduct

cn_api_fluid_layers_fc

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

17

Input

cn_api_fluid_layers_data

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

18

Log

cn_api_fluid_layers_log

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

19

LRN

cn_api_fluid_layers_lrn

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

20

Pooling

cn_api_fluid_layers_pool2d

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

21

Power

cn_api_fluid_layers_pow

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

22

PReLU

cn_api_fluid_layers_prelu

功能一致

23

Reduction

无相应接口

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “fluid 实现”.

Fluid 实现

24

ReLU

cn_api_fluid_layers_leaky_relu

功能一致

25

Reshape

cn_api_fluid_layers_reshape

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

26

SigmoidCrossEntropyLoss

cn_api_fluid_layers_sigmoid_cross_entropy_with_logits

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

27

Sigmoid

cn_api_fluid_layers_sigmoid

功能一致

28

Slice

cn_api_fluid_layers_slice

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

29

SoftmaxWithLoss

cn_api_fluid_layers_softmax_with_cross_entropy

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

30

Softmax

cn_api_fluid_layers_softmax

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比

31

TanH

cn_api_fluid_layers_tanh

功能一致

32

Tile

cn_api_fluid_layers_expand

System Message: WARNING/2 (/FluidDoc/docs/api_guides/X2Paddle/Caffe-Fluid.rst, line 5); backlink

Duplicate explicit target name: “差异对比”.

差异对比