未验证 提交 96cff862 编写于 作者: J Jason 提交者: GitHub

Update ReadMe.md

上级 0060d0af
# TensorFlow-Fluid功能一致
# TensorFlow-Fluid接口对应
本文档基于TensorFlow v1.12.0梳理了常用API与PaddlePaddle API对应关系和差异分析。根据文档对应关系,有TensorFlow使用经验的用户,可根据对应关系,快速熟悉PaddlePaddle的接口使用 。
......@@ -26,7 +26,7 @@
| 20 | [tf.contrib.layers.softmax](https://www.tensorflow.org/api_docs/python/tf/contrib/layers/softmax) | [fluid.layers.softmax](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#softmax) | 功能一致 |
| 21 | [tf.contrib.layers.xavier_initializer](https://www.tensorflow.org/api_docs/python/tf/contrib/layers/xavier_initializer) | [fluid.initializer.Xavier](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/initializer_cn.html#xavier) | 功能一致 |
| 22 | [tf.contrib.rnn.GRUCell](https://www.tensorflow.org/api_docs/python/tf/contrib/rnn/GRUCell) | [fluid.layers.gru_unit](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#gru_unit) | [差异对比](tf.contrib.rnn.GRUCell.md) |
| 23 | [tf.contrib.rnn.MultiRNNCell](https://www.tensorflow.org/api_docs/python/tf/contrib/rnn/MultiRNNCell) | - | [PaddlePaddle实现](tf.nn.rnn_cell.MultiRNNCell.md) |
| 23 | [tf.contrib.rnn.MultiRNNCell](https://www.tensorflow.org/api_docs/python/tf/contrib/rnn/MultiRNNCell) | 无相应接口 | [Paddle实现方法](tf.nn.rnn_cell.MultiRNNCell.md) |
| 24 | [tf.contrib.rnn.static_rnn](https://www.tensorflow.org/api_docs/python/tf/contrib/rnn/static_rnn) | [fluid.layers.DynamicRNN](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#dynamicrnn) | 功能一致 |
| 25 | [tf.convert_to_tensor](https://www.tensorflow.org/api_docs/python/tf/convert_to_tensor) | [fluid.layers.assign](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#assign) | 功能一致 |
| 26 | [tf.cos](https://www.tensorflow.org/api_docs/python/tf/cos) | [fluid.layers.cos](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#cos) | 功能一致 |
......@@ -70,7 +70,7 @@
| 64 | [tf.multiply](https://www.tensorflow.org/api_docs/python/tf/multiply) | [fluid.layers.elementwise_mul](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#elementwise_mul) | 功能一致 |
| 65 | [tf.nn.avg_pool](https://www.tensorflow.org/api_docs/python/tf/nn/avg_pool) | [fluid.layers.pool2d](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.pool2d) | [差异对比](tf.nn.avg_pool.md) |
| 66 | [tf.nn.batch_normalization](https://www.tensorflow.org/api_docs/python/tf/nn/batch_normalization) | [fluid.layers.batch_norm](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.batch_norm) | 功能一致 |
| 67 | [tf.nn.bidirectional_dynamic_rnn](https://www.tensorflow.org/api_docs/python/tf/nn/bidirectional_dynamic_rnn) | - | [PaddlePaddle实现](tf.nn.bidirectional_dynamic_rnn.md) |
| 67 | [tf.nn.bidirectional_dynamic_rnn](https://www.tensorflow.org/api_docs/python/tf/nn/bidirectional_dynamic_rnn) | 无相应接口 | [Paddle实现方法](tf.nn.bidirectional_dynamic_rnn.md) |
| 68 | [tf.nn.conv2d](https://www.tensorflow.org/api_docs/python/tf/nn/conv2d) | [fluid.layers.conv2d](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.conv2d) | [差异对比](tf.nn.conv2d.md) |
| 69 | [tf.nn.conv2d_transpose](https://www.tensorflow.org/api_docs/python/tf/nn/conv2d_transpose) | [fluid.layers.conv2d_transpose](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.conv2d_transpose) | [差异对比](tf.nn.conv2d_transpose.md) |
| 70 | [tf.nn.conv3d_transpose](https://www.tensorflow.org/api_docs/python/tf/nn/conv3d_transpose) | [fluid.layers.conv3d_transpose](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.conv2d_transpose) | [差异对比](tf.nn.conv3d_transpose.md) |
......@@ -84,7 +84,7 @@
| 78 | [tf.nn.relu](https://www.tensorflow.org/api_docs/python/tf/nn/relu) | [fluid.layers.relu](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#relu) | 功能一致 |
| 79 | [tf.nn.relu6](https://www.tensorflow.org/api_docs/python/tf/nn/relu6) | [fluid.layers.relu6](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.relu6) | 功能一致 |
| 80 | [tf.nn.rnn_cell.LSTMCell](https://www.tensorflow.org/api_docs/python/tf/nn/rnn_cell/LSTMCell) | [fluid.layers.lstm_unit](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#lstm_unit) | [差异对比](tf.nn.rnn_cell.LSTMCell.md) |
| 81 | [tf.nn.separable_conv2d](https://www.tensorflow.org/api_docs/python/tf/nn/separable_conv2d) | - | [PaddlePaddle实现](tf.nn.separable_conv2d.md) |
| 81 | [tf.nn.separable_conv2d](https://www.tensorflow.org/api_docs/python/tf/nn/separable_conv2d) | 无相应接口 | [Paddle实现方法](tf.nn.separable_conv2d.md) |
| 82 | [tf.nn.sigmoid](https://www.tensorflow.org/api_docs/python/tf/nn/sigmoid) | [fluid.layers.sigmoid](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#sigmoid) | 功能一致 |
| 83 | [tf.nn.sigmoid_cross_entropy_with_logits](https://www.tensorflow.org/api_docs/python/tf/nn/sigmoid_cross_entropy_with_logits) | [fluid.layers.sigmoid_cross_entropy_with_logits](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#sigmoid_cross_entropy_with_logits) | 功能一致 |
| 84 | [tf.nn.softmax](https://www.tensorflow.org/api_docs/python/tf/nn/softmax) | [fluid.layers.softmax](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#softmax) | 功能一致 |
......@@ -104,7 +104,7 @@
| 98 | [tf.random_normal_initializer](https://www.tensorflow.org/api_docs/python/tf/random_normal_initializer) | [fluid.initializer.Normal](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/initializer_cn.html#normal) | 功能一致 |
| 99 | [tf.random_uniform](https://www.tensorflow.org/api_docs/python/tf/random_uniform) | [fluid.layers.uniform_random](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.uniform_random) | 功能一致 |
| 100 | [tf.random_uniform_initializer](https://www.tensorflow.org/api_docs/python/tf/random_uniform_initializer) | [fluid.initializer.UniformInitializer](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/initializer_cn.html#uniforminitializer) | 功能一致 |
| 101 | [tf.reduce_logsumexp](https://www.tensorflow.org/api_docs/python/tf/reduce_logsumexp) | - | [PaddlePaddle实现](tf.nn.reduce_logsumexp.md) |
| 101 | [tf.reduce_logsumexp](https://www.tensorflow.org/api_docs/python/tf/reduce_logsumexp) | 无相应接口 | [Paddle实现方法](tf.nn.reduce_logsumexp.md) |
| 102 | [tf.reduce_max](https://www.tensorflow.org/api_docs/python/tf/reduce_max) | [fluid.layers.reduce_max](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#reduce_max) | 功能一致 |
| 103 | [tf.reduce_mean](https://www.tensorflow.org/api_docs/python/tf/reduce_mean) | [fluid.layers.reduce_mean](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#reduce_mean) | 功能一致 |
| 104 | [tf.reduce_min](https://www.tensorflow.org/api_docs/python/tf/reduce_min) | [fluid.layers.reduce_min](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#reduce_min) | 功能一致 |
......@@ -115,7 +115,7 @@
| 109 | [tf.reverse_sequence](https://www.tensorflow.org/api_docs/python/tf/reverse_sequence) | [fluid.layers.sequence_reverse](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#sequence_reverse) | [差异对比](tf.reverse_sequence.md) |
| 110 | [tf.reverse_v2](https://www.tensorflow.org/api_docs/python/tf/reverse_v2) | [fluid.layers.reverse](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.reverse) | 功能一致 |
| 111 | [tf.round](https://www.tensorflow.org/api_docs/python/tf/round) | [fluid.layers.round](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.round) | 功能一致 |
| 112 | [tf.rsqrt](https://www.tensorflow.org/api_docs/python/tf/rsqrt) | - | [PaddlePaddle实现](tf.math.rsqrt.md) |
| 112 | [tf.rsqrt](https://www.tensorflow.org/api_docs/python/tf/rsqrt) | 无相应接口 | [Paddle实现方法](tf.math.rsqrt.md) |
| 113 | [tf.scalar_mul](https://www.tensorflow.org/api_docs/python/tf/scalar_mul) | [fluid.layers.scale](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#scale) | 功能一致 |
| 114 | [tf.scatter_update](https://www.tensorflow.org/api_docs/python/tf/scatter_update) | [fluid.layers.scatter](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#scatter) | [差异对比](tf.scatter_update.md) |
| 115 | [tf.sequence_mask](https://www.tensorflow.org/api_docs/python/tf/sequence_mask) | [fluid.layers.sequence_mask](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#sequence_mask) | 功能一致 |
......@@ -127,10 +127,10 @@
| 121 | [tf.split](https://www.tensorflow.org/api_docs/python/tf/split) | [fluid.layers.split](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#split) | [差异对比](tf.split.md) |
| 122 | [tf.sqrt](https://www.tensorflow.org/api_docs/python/tf/sqrt) | [fluid.layers.sqrt](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#sqrt) | 功能一致 |
| 123 | [tf.square](https://www.tensorflow.org/api_docs/python/tf/square) | [fluid.layers.square](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.square) | 功能一致 |
| 124 | [tf.squared_difference](https://www.tensorflow.org/api_docs/python/tf/squared_difference) | - | [PaddlePaddle实现](tf.squared_difference.md) |
| 124 | [tf.squared_difference](https://www.tensorflow.org/api_docs/python/tf/squared_difference) | 无相应接口 | [Paddle实现方法](tf.squared_difference.md) |
| 125 | [tf.squeeze](https://www.tensorflow.org/api_docs/python/tf/squeeze) | [fluid.layers.squeeze](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#squeeze) | 功能一致 |
| 126 | [tf.stack](https://www.tensorflow.org/api_docs/python/tf/stack) | [fluid.layers.stack](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#stack) | 功能一致 |
| 127 | [tf.stop_gradient](https://www.tensorflow.org/api_docs/python/tf/stop_gradient) | - | [PaddlePaddle实现](tf.stop_gradient.md) |
| 127 | [tf.stop_gradient](https://www.tensorflow.org/api_docs/python/tf/stop_gradient) | 无相应接口 | [Paddle实现方法](tf.stop_gradient.md) |
| 128 | [tf.subtract](https://www.tensorflow.org/api_docs/python/tf/subtract) | [fluid.layers.elementwise_sub](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.elementwise_sub) | 功能一致 |
| 129 | [tf.tanh](https://www.tensorflow.org/api_docs/python/tf/tanh) | [fluid.layers.tanh](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#tanh) | 功能一致 |
| 130 | [tf.tile](https://www.tensorflow.org/api_docs/python/tf/tile) | [fluid.layers.expand](http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.expand) | 功能一致 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册