Caffe-Fluid常用层对应表

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

序号

Caffe Layer

Fluid接口

备注

1

AbsVal

abs

功能一致

2

Accuracy

accuracy

差异对比

3

ArgMax

argmax

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

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

差异对比

4

BatchNorm

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

concat

功能一致

7

Convolution

conv2d

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

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

差异对比

8

Crop

crop

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

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

差异对比

9

Deconvolution

conv2d_transpose

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

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

差异对比

10

Dropout

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

elu

功能一致

13

EuclideanLoss

square_error_cost

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

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

差异对比

14

Exp

exp

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

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

差异对比

15

Flatten

reshape

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

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

差异对比

16

InnerProduct

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

log

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

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

差异对比

19

LRN

lrn

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

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

差异对比

20

Pooling

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

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

leaky_relu

功能一致

25

Reshape

reshape

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

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

差异对比

26

SigmoidCrossEntropyLoss

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

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

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

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

expand

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

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

差异对比