TensorFlow-Fluid 常用接口对应表¶
本文档基于 TensorFlow v1.13 梳理了常用 API 与 PaddlePaddle API 对应关系和差异分析。根据文档对应关系,有 TensorFlow 使用经验的用户,可根据对应关系,快速熟悉 PaddlePaddle 的接口使用。
序号 |
TensorFlow 接口 |
Fluid 接口 |
备注 |
---|---|---|---|
1 |
cn_api_fluid_layers_abs |
功能一致 |
|
2 |
cn_api_fluid_layers_elementwise_add |
功能一致 |
|
3 |
cn_api_fluid_layers_argmax |
功能一致 |
|
4 |
cn_api_fluid_layers_argmin |
功能一致 |
|
5 |
cn_api_fluid_layers_assign |
功能一致 |
|
6 |
cn_api_fluid_layers_increment |
功能一致 |
|
7 |
cn_api_fluid_layers_Switch |
||
8 |
cn_api_fluid_layers_cast |
功能一致 |
|
9 |
cn_api_fluid_clip_GradientClipByGlobalNorm |
||
10 |
cn_api_fluid_layers_clip_by_norm |
||
11 |
cn_api_fluid_layers_clip |
功能一致 |
|
12 |
cn_api_fluid_layers_concat |
功能一致 |
|
13 |
cn_api_fluid_layers_ifElse |
功能一致 |
|
14 |
cn_api_fluid_layers_fill_constant |
功能一致 |
|
15 |
cn_api_fluid_layers_batch_norm |
功能一致 |
|
16 |
cn_api_fluid_layers_flatten |
||
17 |
cn_api_fluid_layers_fc |
功能一致 |
|
18 |
cn_api_fluid_layers_one_hot |
功能一致 |
|
19 |
cn_api_fluid_layers_softmax |
功能一致 |
|
20 |
cn_api_fluid_initializer_Xavier |
功能一致 |
|
21 |
cn_api_fluid_layers_gru_unit |
||
22 |
无相应接口 |
||
23 |
cn_api_fluid_layers_DynamicRNN |
功能一致 |
|
24 |
cn_api_fluid_layers_assign |
功能一致 |
|
25 |
cn_api_fluid_layers_cos |
功能一致 |
|
26 |
cn_api_fluid_layers_elementwise_div |
功能一致 |
|
27 |
cn_api_fluid_layers_elementwise_div |
功能一致 |
|
28 |
cn_api_fluid_layers_dropout |
||
29 |
功能一致 |
||
30 |
cn_api_fluid_layers_exp |
功能一致 |
|
31 |
cn_api_fluid_layers_unsqueeze |
||
32 |
cn_api_fluid_layers_fill_constant |
功能一致 |
|
33 |
cn_api_fluid_layers_floor |
功能一致 |
|
34 |
cn_api_fluid_layers_gather |
功能一致 |
|
35 |
功能一致 |
||
36 |
功能一致 |
||
37 |
cn_api_fluid_layers_multiclass_nms |
||
38 |
cn_api_fluid_layers_resize_bilinear |
功能一致 |
|
39 |
cn_api_fluid_layers_image_resize |
||
40 |
cn_api_fluid_layers_resize_nearest |
功能一致 |
|
41 |
cn_api_fluid_layers_isfinite |
||
42 |
cn_api_fluid_layers_batch_norm |
功能一致 |
|
43 |
cn_api_fluid_layers_conv2d |
||
44 |
cn_api_fluid_layers_fc |
||
45 |
cn_api_fluid_layers_dropout |
功能一致 |
|
46 |
cn_api_fluid_layers_dropout |
功能一致 |
|
47 |
cn_api_fluid_layers_flatten |
功能一致 |
|
48 |
功能一致 |
||
49 |
功能一致 |
||
50 |
cn_api_fluid_layers_log |
功能一致 |
|
51 |
cn_api_fluid_layers_logical_and |
功能一致 |
|
52 |
cn_api_fluid_layers_logical_not |
功能一致 |
|
53 |
cn_api_fluid_layers_logical_or |
功能一致 |
|
54 |
cn_api_fluid_layers_square_error_cost |
||
55 |
cn_api_fluid_layers_sigmoid_cross_entropy_with_logits |
||
56 |
cn_api_fluid_layers_softmax_with_cross_entropy |
功能一致 |
|
57 |
cn_api_fluid_layers_matmul |
||
58 |
cn_api_fluid_layers_elementwise_max |
功能一致 |
|
59 |
cn_api_fluid_layers_accuracy |
功能一致 |
|
60 |
cn_api_fluid_layers_mean |
功能一致 |
|
61 |
cn_api_fluid_layers_elementwise_min |
功能一致 |
|
62 |
cn_api_fluid_layers_elementwise_mul |
功能一致 |
|
63 |
cn_api_fluid_layers_pool2d |
||
64 |
cn_api_fluid_layers_batch_norm |
功能一致 |
|
65 |
无相应接口 |
||
66 |
cn_api_fluid_layers_conv2d |
||
67 |
cn_api_fluid_layers_conv2d_transpose |
||
68 |
cn_api_fluid_layers_conv3d_transpose |
||
69 |
cn_api_fluid_layers_conv2d |
||
70 |
cn_api_fluid_layers_DynamicRNN |
||
71 |
cn_api_fluid_layers_l2_normalize |
||
72 |
cn_api_fluid_layers_leaky_relu |
功能一致 |
|
73 |
cn_api_fluid_layers_lrn |
||
74 |
cn_api_fluid_layers_pool2d |
||
75 |
cn_api_fluid_layers_relu |
功能一致 |
|
76 |
cn_api_fluid_layers_relu6 |
功能一致 |
|
77 |
cn_api_fluid_layers_lstm_unit |
||
78 |
无相应接口 |
||
79 |
cn_api_fluid_layers_sigmoid |
功能一致 |
|
80 |
cn_api_fluid_layers_sigmoid_cross_entropy_with_logits |
功能一致 |
|
81 |
cn_api_fluid_layers_softmax |
功能一致 |
|
82 |
cn_api_fluid_layers_softmax_with_cross_entropy |
||
83 |
cn_api_fluid_layers_softplus |
功能一致 |
|
84 |
cn_api_fluid_layers_softsign |
功能一致 |
|
85 |
cn_api_fluid_layers_tanh |
功能一致 |
|
86 |
cn_api_fluid_layers_one_hot |
||
87 |
cn_api_fluid_layers_ones |
功能一致 |
|
88 |
cn_api_fluid_initializer_Constant |
功能一致 |
|
89 |
cn_api_fluid_layers_pad |
||
90 |
cn_api_fluid_layers_data |
||
91 |
cn_api_fluid_layers_pow |
||
92 |
cn_api_fluid_layers_print |
||
93 |
cn_api_fluid_layers_py_func |
功能一致 |
|
94 |
cn_api_fluid_layers_gaussian_random |
功能一致 |
|
95 |
cn_api_fluid_initializer_Normal |
功能一致 |
|
96 |
cn_api_fluid_layers_uniform_random |
功能一致 |
|
97 |
cn_api_fluid_initializer_UniformInitializer |
功能一致 |
|
98 |
无相应接口 |
||
99 |
cn_api_fluid_layers_reduce_max |
功能一致 |
|
100 |
cn_api_fluid_layers_reduce_mean |
功能一致 |
|
101 |
cn_api_fluid_layers_reduce_min |
功能一致 |
|
102 |
cn_api_fluid_layers_reduce_sum |
功能一致 |
|
103 |
cn_api_fluid_layers_reshape |
||
104 |
cn_api_fluid_layers_reverse |
功能一致 |
|
105 |
cn_api_fluid_layers_sequence_reverse |
||
106 |
cn_api_fluid_layers_reverse |
功能一致 |
|
107 |
cn_api_fluid_layers_round |
功能一致 |
|
108 |
cn_api_fluid_layers_rsqrt |
功能一致 |
|
109 |
cn_api_fluid_layers_scale |
功能一致 |
|
110 |
cn_api_fluid_layers_scatter |
||
111 |
cn_api_fluid_layers_sequence_mask |
功能一致 |
|
112 |
cn_api_fluid_layers_shape |
功能一致 |
|
113 |
cn_api_fluid_layers_sigmoid |
功能一致 |
|
114 |
cn_api_fluid_layers_sin |
功能一致 |
|
115 |
cn_api_fluid_layers_slice |
||
116 |
cn_api_fluid_layers_split |
||
117 |
cn_api_fluid_layers_sqrt |
功能一致 |
|
118 |
cn_api_fluid_layers_square |
功能一致 |
|
119 |
无相应接口 |
||
120 |
cn_api_fluid_layers_squeeze |
功能一致 |
|
121 |
cn_api_fluid_layers_stack |
功能一致 |
|
122 |
无相应接口 |
||
123 |
cn_api_fluid_layers_elementwise_sub |
功能一致 |
|
124 |
cn_api_fluid_layers_tanh |
功能一致 |
|
125 |
cn_api_fluid_layers_expand |
功能一致 |
|
126 |
cn_api_fluid_layers_topk |
||
127 |
cn_api_fluid_optimizer_AdagradOptimizer |
功能一致 |
|
128 |
cn_api_fluid_optimizer_Adam |
功能一致 |
|
129 |
cn_api_fluid_layers_exponential_decay |
功能一致 |
|
130 |
cn_api_fluid_optimizer_SGDOptimizer |
功能一致 |
|
131 |
cn_api_fluid_optimizer_MomentumOptimizer |
功能一致 |
|
132 |
cn_api_fluid_layers_polynomial_decay |
功能一致 |
|
133 |
cn_api_fluid_optimizer_RMSPropOptimizer |
功能一致 |
|
134 |
cn_api_fluid_layers_transpose |
功能一致 |
|
135 |
cn_api_fluid_layers_elementwise_div |
功能一致 |
|
136 |
cn_api_fluid_initializer_TruncatedNormal |
功能一致 |
|
137 |
cn_api_fluid_initializer_TruncatedNormal |
功能一致 |
|
138 |
cn_api_fluid_layers_unstack |
功能一致 |
|
139 |
cn_api_fluid_layers_create_parameter |
功能一致 |
|
140 |
cn_api_fluid_layers_While |
||
141 |
cn_api_fluid_layers_zeros |
功能一致 |
|
142 |
cn_api_fluid_initializer_Constant |
功能一致 |