Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
X2Paddle
提交
ede3f485
X
X2Paddle
项目概览
PaddlePaddle
/
X2Paddle
大约 1 年 前同步成功
通知
328
Star
698
Fork
167
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
26
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
X2Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
26
Issue
26
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ede3f485
编写于
6月 28, 2019
作者:
J
jiangjiajun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update tf2fluid/doc
上级
fe8e5c53
变更
47
显示空白变更内容
内联
并排
Showing
47 changed file
with
101 addition
and
205 deletion
+101
-205
tensorflow2fluid/doc/ReadMe.md
tensorflow2fluid/doc/ReadMe.md
+5
-5
tensorflow2fluid/doc/compare_op.md
tensorflow2fluid/doc/compare_op.md
+5
-5
tensorflow2fluid/doc/tf.case.md
tensorflow2fluid/doc/tf.case.md
+2
-2
tensorflow2fluid/doc/tf.clip_by_global_norm.md
tensorflow2fluid/doc/tf.clip_by_global_norm.md
+2
-2
tensorflow2fluid/doc/tf.clip_by_norm.md
tensorflow2fluid/doc/tf.clip_by_norm.md
+2
-2
tensorflow2fluid/doc/tf.contrib.layers.flatten.md
tensorflow2fluid/doc/tf.contrib.layers.flatten.md
+2
-2
tensorflow2fluid/doc/tf.contrib.rnn.GRUCell.md
tensorflow2fluid/doc/tf.contrib.rnn.GRUCell.md
+0
-84
tensorflow2fluid/doc/tf.expand_dims.md
tensorflow2fluid/doc/tf.expand_dims.md
+2
-4
tensorflow2fluid/doc/tf.image.non_max_suppression.md
tensorflow2fluid/doc/tf.image.non_max_suppression.md
+2
-3
tensorflow2fluid/doc/tf.image.resize_images.md
tensorflow2fluid/doc/tf.image.resize_images.md
+2
-4
tensorflow2fluid/doc/tf.layers.conv2d.md
tensorflow2fluid/doc/tf.layers.conv2d.md
+3
-4
tensorflow2fluid/doc/tf.layers.dense.md
tensorflow2fluid/doc/tf.layers.dense.md
+2
-3
tensorflow2fluid/doc/tf.losses.mean_and_squared_error.md
tensorflow2fluid/doc/tf.losses.mean_and_squared_error.md
+2
-2
tensorflow2fluid/doc/tf.losses.sigmoid_cross_entropy.md
tensorflow2fluid/doc/tf.losses.sigmoid_cross_entropy.md
+2
-2
tensorflow2fluid/doc/tf.math.is_finite.md
tensorflow2fluid/doc/tf.math.is_finite.md
+2
-3
tensorflow2fluid/doc/tf.math.rsqrt.md
tensorflow2fluid/doc/tf.math.rsqrt.md
+2
-2
tensorflow2fluid/doc/tf.matmul.md
tensorflow2fluid/doc/tf.matmul.md
+2
-3
tensorflow2fluid/doc/tf.nn.avg_pool.md
tensorflow2fluid/doc/tf.nn.avg_pool.md
+1
-1
tensorflow2fluid/doc/tf.nn.bidirectional_dynamic_rnn.md
tensorflow2fluid/doc/tf.nn.bidirectional_dynamic_rnn.md
+2
-2
tensorflow2fluid/doc/tf.nn.conv2d.md
tensorflow2fluid/doc/tf.nn.conv2d.md
+2
-2
tensorflow2fluid/doc/tf.nn.conv2d_transpose.md
tensorflow2fluid/doc/tf.nn.conv2d_transpose.md
+2
-3
tensorflow2fluid/doc/tf.nn.conv3d_transpose.md
tensorflow2fluid/doc/tf.nn.conv3d_transpose.md
+2
-3
tensorflow2fluid/doc/tf.nn.depthwise_conv2d.md
tensorflow2fluid/doc/tf.nn.depthwise_conv2d.md
+2
-2
tensorflow2fluid/doc/tf.nn.dropout.md
tensorflow2fluid/doc/tf.nn.dropout.md
+2
-3
tensorflow2fluid/doc/tf.nn.dynamic_rnn.md
tensorflow2fluid/doc/tf.nn.dynamic_rnn.md
+2
-2
tensorflow2fluid/doc/tf.nn.l2_normalize.md
tensorflow2fluid/doc/tf.nn.l2_normalize.md
+2
-3
tensorflow2fluid/doc/tf.nn.lrn.md
tensorflow2fluid/doc/tf.nn.lrn.md
+2
-3
tensorflow2fluid/doc/tf.nn.max_pool.md
tensorflow2fluid/doc/tf.nn.max_pool.md
+2
-2
tensorflow2fluid/doc/tf.nn.reduce_logsumexp.md
tensorflow2fluid/doc/tf.nn.reduce_logsumexp.md
+2
-2
tensorflow2fluid/doc/tf.nn.rnn_cell.LSTMCell.md
tensorflow2fluid/doc/tf.nn.rnn_cell.LSTMCell.md
+2
-2
tensorflow2fluid/doc/tf.nn.rnn_cell.MultiRNNCell.md
tensorflow2fluid/doc/tf.nn.rnn_cell.MultiRNNCell.md
+2
-2
tensorflow2fluid/doc/tf.nn.separable_conv2d.md
tensorflow2fluid/doc/tf.nn.separable_conv2d.md
+2
-2
tensorflow2fluid/doc/tf.nn.softmax_cross_entropy_with_logits.md
...flow2fluid/doc/tf.nn.softmax_cross_entropy_with_logits.md
+3
-2
tensorflow2fluid/doc/tf.nn.top_k.md
tensorflow2fluid/doc/tf.nn.top_k.md
+2
-3
tensorflow2fluid/doc/tf.one_hot.md
tensorflow2fluid/doc/tf.one_hot.md
+2
-3
tensorflow2fluid/doc/tf.pad.md
tensorflow2fluid/doc/tf.pad.md
+2
-3
tensorflow2fluid/doc/tf.placeholder.md
tensorflow2fluid/doc/tf.placeholder.md
+2
-3
tensorflow2fluid/doc/tf.pow.md
tensorflow2fluid/doc/tf.pow.md
+2
-2
tensorflow2fluid/doc/tf.print.md
tensorflow2fluid/doc/tf.print.md
+2
-2
tensorflow2fluid/doc/tf.reshape.md
tensorflow2fluid/doc/tf.reshape.md
+2
-4
tensorflow2fluid/doc/tf.reverse_sequence.md
tensorflow2fluid/doc/tf.reverse_sequence.md
+2
-2
tensorflow2fluid/doc/tf.scatter_update.md
tensorflow2fluid/doc/tf.scatter_update.md
+4
-3
tensorflow2fluid/doc/tf.slice.md
tensorflow2fluid/doc/tf.slice.md
+2
-3
tensorflow2fluid/doc/tf.split.md
tensorflow2fluid/doc/tf.split.md
+2
-2
tensorflow2fluid/doc/tf.squared_difference.md
tensorflow2fluid/doc/tf.squared_difference.md
+2
-2
tensorflow2fluid/doc/tf.stop_gradient.md
tensorflow2fluid/doc/tf.stop_gradient.md
+2
-3
tensorflow2fluid/doc/tf.while_loop.md
tensorflow2fluid/doc/tf.while_loop.md
+2
-2
未找到文件。
tensorflow2fluid/doc/ReadMe.md
浏览文件 @
ede3f485
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
| 18 |
[
tf.contrib.layers.one_hot_encoding
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/layers/one_hot_encoding
)
|
[
fluid.layers.one_hot
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#one_hot
)
| 功能一致 |
| 18 |
[
tf.contrib.layers.one_hot_encoding
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/layers/one_hot_encoding
)
|
[
fluid.layers.one_hot
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#one_hot
)
| 功能一致 |
| 19 |
[
tf.contrib.layers.softmax
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/layers/softmax
)
|
[
fluid.layers.softmax
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#softmax
)
| 功能一致 |
| 19 |
[
tf.contrib.layers.softmax
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/layers/softmax
)
|
[
fluid.layers.softmax
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#softmax
)
| 功能一致 |
| 20 |
[
tf.contrib.layers.xavier_initializer
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/layers/xavier_initializer
)
|
[
fluid.initializer.Xavier
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/initializer_cn.html#xavier
)
| 功能一致 |
| 20 |
[
tf.contrib.layers.xavier_initializer
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/layers/xavier_initializer
)
|
[
fluid.initializer.Xavier
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/initializer_cn.html#xavier
)
| 功能一致 |
| 21 |
[
tf.
contrib.rnn.GRUCell
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/rnn
/GRUCell
)
|
[
fluid.layers.gru_unit
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#gru_unit
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.contrib.rnn.GRUCell.md
)
|
| 21 |
[
tf.
nn.rnn.GRUCell
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/nn/rnn_cell
/GRUCell
)
|
[
fluid.layers.gru_unit
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#gru_unit
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.contrib.rnn.GRUCell.md
)
|
| 22 |
[
tf.
contrib.rnn.MultiRNNCell
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/rnn
/MultiRNNCell
)
| 无相应接口 |
[
Paddle实现方法
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.nn.rnn_cell.MultiRNNCell.md
)
|
| 22 |
[
tf.
nn.rnn.MultiRNNCell
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/nn/rnn_cell
/MultiRNNCell
)
| 无相应接口 |
[
Paddle实现方法
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.nn.rnn_cell.MultiRNNCell.md
)
|
| 23 |
[
tf.
contrib.rnn.static_rnn
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/contrib/r
nn/static_rnn
)
|
[
fluid.layers.DynamicRNN
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#dynamicrnn
)
| 功能一致 |
| 23 |
[
tf.
nn.rnn.static_rnn
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/
nn/static_rnn
)
|
[
fluid.layers.DynamicRNN
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#dynamicrnn
)
| 功能一致 |
| 24 |
[
tf.convert_to_tensor
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/convert_to_tensor
)
|
[
fluid.layers.assign
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#assign
)
| 功能一致 |
| 24 |
[
tf.convert_to_tensor
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/convert_to_tensor
)
|
[
fluid.layers.assign
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#assign
)
| 功能一致 |
| 25 |
[
tf.cos
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/math/cos
)
|
[
fluid.layers.cos
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#cos
)
| 功能一致 |
| 25 |
[
tf.cos
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/math/cos
)
|
[
fluid.layers.cos
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#cos
)
| 功能一致 |
| 26 |
[
tf.div
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/div
)
|
[
fluid.layers.elementwise_div
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#paddle.fluid.layers.elementwise_div
)
| 功能一致 |
| 26 |
[
tf.div
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/div
)
|
[
fluid.layers.elementwise_div
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#paddle.fluid.layers.elementwise_div
)
| 功能一致 |
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
| 85 |
[
tf.nn.tanh
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/math/tanh
)
|
[
fluid.layers.tanh
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#tanh
)
| 功能一致 |
| 85 |
[
tf.nn.tanh
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/math/tanh
)
|
[
fluid.layers.tanh
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#tanh
)
| 功能一致 |
| 86 |
[
tf.one_hot
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/one_hot
)
|
[
fluid.layers.one_hot
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#paddle.fluid.layers.one_hot
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.one_hot.md
)
|
| 86 |
[
tf.one_hot
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/one_hot
)
|
[
fluid.layers.one_hot
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#paddle.fluid.layers.one_hot
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.one_hot.md
)
|
| 87 |
[
tf.ones
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/ones
)
|
[
fluid.layers.ones
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#ones
)
| 功能一致 |
| 87 |
[
tf.ones
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/ones
)
|
[
fluid.layers.ones
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#ones
)
| 功能一致 |
| 88 |
[
tf.
ones_initializer
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/ones_initializer
)
|
[
fluid.initializer.Constant
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/initializer_cn.html#constant
)
| 功能一致 |
| 88 |
[
tf.
intializers.ones
](
https://www.tensorflow.org/versions/r1.14/api_docs/python/tf/initializers/ones
)
|
[
fluid.initializer.Constant
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/initializer_cn.html#constant
)
| 功能一致 |
| 89 |
[
tf.pad
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/pad
)
|
[
fluid.layers.pad
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#pad
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.pad.md
)
|
| 89 |
[
tf.pad
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/pad
)
|
[
fluid.layers.pad
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#pad
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.pad.md
)
|
| 90 |
[
tf.placeholder
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/placeholder
)
|
[
fluid.layers.data
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#paddle.fluid.layers.data
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.placeholder.md
)
|
| 90 |
[
tf.placeholder
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/placeholder
)
|
[
fluid.layers.data
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#paddle.fluid.layers.data
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.placeholder.md
)
|
| 91 |
[
tf.pow
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/math/pow
)
|
[
fluid.layers.pow
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#pow
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.pow.md
)
|
| 91 |
[
tf.pow
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/math/pow
)
|
[
fluid.layers.pow
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#pow
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.pow.md
)
|
...
@@ -145,4 +145,4 @@
...
@@ -145,4 +145,4 @@
| 139 |
[
tf.Variable
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/Variable
)
|
[
fluid.layers.create_parameter
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#create_parameter
)
| 功能一致 |
| 139 |
[
tf.Variable
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/Variable
)
|
[
fluid.layers.create_parameter
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#create_parameter
)
| 功能一致 |
| 140 |
[
tf.while_loop
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/while_loop
)
|
[
fluid.layers.While
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#While
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.while_loop.md
)
|
| 140 |
[
tf.while_loop
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/while_loop
)
|
[
fluid.layers.While
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#While
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.while_loop.md
)
|
| 141 |
[
tf.zeros
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/zeros
)
|
[
fluid.layers.zeros
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#zeros
)
| 功能一致 |
| 141 |
[
tf.zeros
](
https://www.tensorflow.org/versions/r1.13/api_docs/python/tf/zeros
)
|
[
fluid.layers.zeros
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#zeros
)
| 功能一致 |
| 142 |
[
tf.zeros_initializer
](
https://www.tensorflow.org/versions/r1.1
3
/api_docs/python/tf/zeros_initializer
)
|
[
fluid.initializer.Constant
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/initializer_cn.html#constant
)
| 功能一致 |
| 142 |
[
tf.zeros_initializer
](
https://www.tensorflow.org/versions/r1.1
4
/api_docs/python/tf/zeros_initializer
)
|
[
fluid.initializer.Constant
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/initializer_cn.html#constant
)
| 功能一致 |
tensorflow2fluid/doc/compare_op.md
浏览文件 @
ede3f485
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
| TensorFlow接口 | PaddlePaddle接口 |
| TensorFlow接口 | PaddlePaddle接口 |
|--------------------------|-------------------------------------------------|
|--------------------------|-------------------------------------------------|
|
[
tf.math.less_equal
](
https://www.tensorflow.org/api_docs/python/tf/math/less_equal
)
|运算符
`<=`
|
|
[
tf.math.less_equal
](
https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/less_equal
)
|运算符
`<=`
|
|
[
tf.math.greater
](
https://www.tensorflow.org/api_docs/python/tf/math/greater
)
|运算符
`>`
|
|
[
tf.math.greater
](
https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/greater
)
|运算符
`>`
|
|
[
tf.math.greater_equal
](
https://www.tensorflow.org/api_docs/python/tf/math/greater_equal
)
|运算符
`>=`
|
|
[
tf.math.greater_equal
](
https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/greater_equal
)
|运算符
`>=`
|
|
[
tf.math.equal
](
https://www.tensorflow.org/api_docs/python/tf/math/equal
)
|运算符
`==`
或
[
paddle.fluid.layers.equal
](
http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#permalink-7-equal
)
|
|
[
tf.math.equal
](
https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/equal
)
|运算符
`==`
或
[
paddle.fluid.layers.equal
](
http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#permalink-7-equal
)
|
|
[
tf.math.less
](
https://www.tensorflow.org/api_docs/python/tf/math/less
)
|运算符
`<`
或
[
paddle.fluid.layers.less_than
](
http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#permalink-11-less_than
)
|
|
[
tf.math.less
](
https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/less
)
|运算符
`<`
或
[
paddle.fluid.layers.less_than
](
http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#permalink-11-less_than
)
|
\ No newline at end of file
tensorflow2fluid/doc/tf.case.md
浏览文件 @
ede3f485
## tf.case
## tf.case
### [tf.case](https://www.tensorflow.org/api_docs/python/tf/case)
### [tf.case](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/case)
```
python
```
python
tf
.
case
(
tf
.
case
(
...
...
tensorflow2fluid/doc/tf.clip_by_global_norm.md
浏览文件 @
ede3f485
## tf.clip_by_global_norm
## tf.clip_by_global_norm
### [tf.clip_by_global_norm](https://www.tensorflow.org/api_docs/python/tf/clip_by_global_norm)
### [tf.clip_by_global_norm](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/clip_by_global_norm)
```
python
```
python
tf
.
clip_by_global_norm
(
tf
.
clip_by_global_norm
(
...
...
tensorflow2fluid/doc/tf.clip_by_norm.md
浏览文件 @
ede3f485
## tf.clip_by_norm
## tf.clip_by_norm
### [tf.clip_by_norm](https://www.tensorflow.org/api_docs/python/tf/clip_by_norm)
### [tf.clip_by_norm](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/clip_by_norm)
```
python
```
python
tf
.
clip_by_norm
(
tf
.
clip_by_norm
(
...
...
tensorflow2fluid/doc/tf.contrib.layers.flatten.md
浏览文件 @
ede3f485
## tf.contrib.layers.flatten
## tf.contrib.layers.flatten
### [tf.contrib.layers.flatten](https://www.tensorflow.org/api_docs/python/tf/contrib/layers/flatten)
### [tf.contrib.layers.flatten](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/contrib/layers/flatten)
```
python
```
python
tf
.
contrib
.
layers
.
flatten
(
tf
.
contrib
.
layers
.
flatten
(
...
...
tensorflow2fluid/doc/tf.contrib.rnn.GRUCell.md
已删除
100644 → 0
浏览文件 @
fe8e5c53
## tf.contrib.rnn.GRUCell
### [tf.contrib.rnn.GRUCell](https://www.tensorflow.org/api_docs/python/tf/nn/rnn_cell/GRUCell)
```
python
tf
.
contrib
.
rnn
.
GRUCell
(
num_units
,
activation
=
None
,
reuse
=
None
,
kernel_initializer
=
None
,
bias_initializer
=
None
,
name
=
None
,
dtype
=
None
,
**
kwargs
)
```
### [paddle.fluid.layers.gru_unit](http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#gru-unit)
```
python
paddle
.
fluid
.
layers
.
gru_unit
(
input
,
hidden
,
size
,
param_attr
=
None
,
bias_attr
=
None
,
activation
=
'tanh'
,
gate_activation
=
'sigmoid'
,
origin_mode
=
False
)
```
### 功能差异
#### 实现方式
TensorFlow:GRU的实现方式见论文
[
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
](
http://arxiv.org/abs/1406.1078
)
;
PaddlePaddle:GRU有两种实现方式,当设置
`origin_mode=False`
时,与TensorFlow实现方式一致;当设置
`origin_mode=True`
时,实现方式则参考论文
[
Empirical Evaluation of
Gated Recurrent Neural Networks
on Sequence Modeling
](
https://arxiv.org/pdf/1412.3555.pdf
)
。
#### 使用方式
TensorFlow:首先定义
`GRUCell`
对象,定义对象时只需要指定单元数
`num_units`
;由于
`GRUCell`
内部定义了
`__call__`
方法,因而其对象是可调用对象,直接使用
`step_output, cur_state = cell(step_input, last_state)`
的形式,可以计算得到当前步的输出与状态;
PaddlePaddle:提供op形式的调用接口,通常与
[
paddle.fluid.layers.DynamicRNN
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_cn/layers_cn.html#dynamicrnn
)
配合使用,以获取序列中的单步输入。
**注意,为了提高`gru_unit`的计算效率,用户在使用该接口时需要遵从如下约定:假设要指定的GRU单元数为`num_units`,则`size`以及`input.shape[-1]`必须为`3*num_units`,`hidden.shape[-1]`为`num_units`,见如下代码示例小节。**
#### 返回值
TensorFlow:返回一个二元组,分别是当前时刻的输出值与隐藏状态,实际上输出值与隐藏状态为相同的tensor;
PaddlePaddle:返回一个三元组,即
`(hidden_value, reset_hidden_value, gate_value)`
。后面两个元素为内部使用,用户可以只关注第一个元素。
### 代码示例
```
emb_size = 32
emb_vocab = 10000
num_unit_0 = 10
data = fluid.layers.data(name='input', shape=[1], dtype='int64', lod_level=1)
embedding = fluid.layers.embedding(input=data, size=[emb_vocab, emb_size],
is_sparse=False)
# 为了调用gru_unit,输入最后的维度必须为实际单元数的3倍
emb_fc = layers.fc(embedding, num_unit_0 * 3)
drnn = fluid.layers.DynamicRNN()
with drnn.block():
word = drnn.step_input(emb_fc)
# 指定上一时刻的隐状态,单元数为num_unit_0
prev_hid0 = drnn.memory(shape=[num_unit_0])
# 执行gru_unit计算,num_unit_0 为实际的单元数
cur_hid0, _, _ = layers.gru_unit(word, prev_hid0, num_unit_0 * 3)
# 更新隐状态
drnn.update_memory(prev_hid0, cur_hid0)
drnn.output(cur_hid0)
out = drnn()
last = fluid.layers.sequence_last_step(out)
```
tensorflow2fluid/doc/tf.expand_dims.md
浏览文件 @
ede3f485
## tf.expand_dims
## tf.expand_dims
### [tf.expand_dims](https://www.tensorflow.org/
api_docs/python/tf
/expand_dims)
### [tf.expand_dims](https://www.tensorflow.org/
versions/r1.13/api_docs/python/tf/math
/expand_dims)
```
python
```
python
tf
.
expand_dims
(
tf
.
expand_dims
(
input
,
input
,
...
@@ -40,4 +39,3 @@ out = fluid.layers.unsqueeze(t, [-1])
...
@@ -40,4 +39,3 @@ out = fluid.layers.unsqueeze(t, [-1])
# 输出 tensor out 的 shape 为[1, 1,3, 4]
# 输出 tensor out 的 shape 为[1, 1,3, 4]
out
=
fluid
.
layers
.
unsqueeze
(
t
,
[
0
,
1
])
out
=
fluid
.
layers
.
unsqueeze
(
t
,
[
0
,
1
])
```
```
\ No newline at end of file
tensorflow2fluid/doc/tf.image.non_max_suppression.md
浏览文件 @
ede3f485
## tf.image.non_max_suppression
## tf.image.non_max_suppression
### [tf.image.non_max_suppression](https://www.tensorflow.org/api_docs/python/tf/image/non_max_suppression)
### [tf.image.non_max_suppression](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/image/non_max_suppression)
```
python
```
python
tf
.
image
.
non_max_suppression
(
tf
.
image
.
non_max_suppression
(
boxes
,
boxes
,
...
...
tensorflow2fluid/doc/tf.image.resize_images.md
浏览文件 @
ede3f485
## tf.image.resize_images
## tf.image.resize_images
### [tf.image.resize_images](https://www.tensorflow.org/api_docs/python/tf/image/resize_images)
### [tf.image.resize_images](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/image/resize_images)
```
python
```
python
tf
.
image
.
resize_images
(
tf
.
image
.
resize_images
(
images
,
images
,
...
@@ -39,4 +38,3 @@ inputs = fluid.layers.data(dtype='float32', shape=[3, 300, 300], name='inputs')
...
@@ -39,4 +38,3 @@ inputs = fluid.layers.data(dtype='float32', shape=[3, 300, 300], name='inputs')
# 输出shape为[3, 400, 500]
# 输出shape为[3, 400, 500]
outputs
=
fluid
.
layers
.
image_reisze
(
inputs
,
[
400
,
500
])
outputs
=
fluid
.
layers
.
image_reisze
(
inputs
,
[
400
,
500
])
```
```
\ No newline at end of file
tensorflow2fluid/doc/tf.layers.conv2d.md
浏览文件 @
ede3f485
## tf.layers.conv2d
## tf.layers.conv2d
### [tf.layers.conv2d](https://www.tensorflow.org/api_docs/python/tf/layers/conv2d)
### [tf.layers.conv2d](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/layers/conv2d)
```
python
```
python
tf
.
layers
.
conv2d
(
tf
.
layers
.
conv2d
(
inputs
,
inputs
,
...
@@ -73,7 +72,7 @@ pad_right = pad_size - pad_left
...
@@ -73,7 +72,7 @@ pad_right = pad_size - pad_left
PaddlePaddle:
`padding`
参数表示在输入图像四周padding的size大小。
PaddlePaddle:
`padding`
参数表示在输入图像四周padding的size大小。
#### 参数差异
#### 参数差异
TensorFlow:深度可分离卷积使用
[
tf.layers.separable_conv2d
](
https://www.tensorflow.org/api_docs/python/tf/layers/separable_conv2d
)
接口;
TensorFlow:深度可分离卷积使用
[
tf.layers.separable_conv2d
](
https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/layers/separable_conv2d
)
接口;
PaddlePaddle: 使用
`paddle.fluid.layers.conv2d`
,可参考
PaddlePaddle: 使用
`paddle.fluid.layers.conv2d`
,可参考
[
PaddlePaddle对卷积的说明文档
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_guides/low_level/layers/conv.html
)
, 同时也可参考
[
tf.nn.separable_conv2d
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.nn.separable_conv2d.md
)
中的代码示例。
[
PaddlePaddle对卷积的说明文档
](
http://paddlepaddle.org/documentation/docs/zh/1.4/api_guides/low_level/layers/conv.html
)
, 同时也可参考
[
tf.nn.separable_conv2d
](
https://github.com/PaddlePaddle/X2Paddle/blob/master/tensorflow2fluid/doc/tf.nn.separable_conv2d.md
)
中的代码示例。
...
...
tensorflow2fluid/doc/tf.layers.dense.md
浏览文件 @
ede3f485
## tf.layers.dense
## tf.layers.dense
### [tf.layers.dense](https://www.tensorflow.org/api_docs/python/tf/layers/dense)
### [tf.layers.dense](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/layers/dense)
```
python
```
python
tf
.
layers
.
dense
(
tf
.
layers
.
dense
(
inputs
,
inputs
,
...
...
tensorflow2fluid/doc/tf.losses.mean_and_squared_error.md
浏览文件 @
ede3f485
## tf.losses.mean_and_squared_error
## tf.losses.mean_and_squared_error
### [tf.losses.mean_and_squared_error](https://www.tensorflow.org/api_docs/python/tf/losses/mean_squared_error)
### [tf.losses.mean_and_squared_error](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/losses/mean_squared_error)
```
python
```
python
tf
.
losses
.
mean_squared_error
(
tf
.
losses
.
mean_squared_error
(
...
...
tensorflow2fluid/doc/tf.losses.sigmoid_cross_entropy.md
浏览文件 @
ede3f485
## tf.losses.sigmoid_cross_entropy
## tf.losses.sigmoid_cross_entropy
### [tf.losses.sigmoid_cross_entropy](https://www.tensorflow.org/api_docs/python/tf/losses/sigmoid_cross_entropy)
### [tf.losses.sigmoid_cross_entropy](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/losses/sigmoid_cross_entropy)
```
python
```
python
tf
.
losses
.
sigmoid_cross_entropy
(
tf
.
losses
.
sigmoid_cross_entropy
(
...
...
tensorflow2fluid/doc/tf.math.is_finite.md
浏览文件 @
ede3f485
## tf.math.is_finite
## tf.math.is_finite
### [tf.math.is_finite](https://www.tensorflow.org/api_docs/python/tf/math/is_finite)
### [tf.math.is_finite](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/is_finite)
```
python
```
python
tf
.
math
.
is_finite
(
tf
.
math
.
is_finite
(
x
,
x
,
...
...
tensorflow2fluid/doc/tf.math.rsqrt.md
浏览文件 @
ede3f485
## tf.math.rsqrt
## tf.math.rsqrt
### [tf.math.rsqrt](https://www.tensorflow.org/api_docs/python/tf/math/rsqrt)
### [tf.math.rsqrt](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/rsqrt)
```
python
```
python
tf
.
math
.
rsqrt
(
tf
.
math
.
rsqrt
(
x
,
x
,
...
...
tensorflow2fluid/doc/tf.matmul.md
浏览文件 @
ede3f485
## tf.matmul
## tf.matmul
### [tf.matmul](https://www.tensorflow.org/api_docs/python/tf/linalg/matmul)
### [tf.matmul](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/linalg/matmul)
```
python
```
python
tf
.
matmul
(
tf
.
matmul
(
a
,
a
,
...
...
tensorflow2fluid/doc/tf.nn.avg_pool.md
浏览文件 @
ede3f485
## tf.nn.avg_pool
## tf.nn.avg_pool
### [tf.nn.avg_pool](https://www.tensorflow.org/versions/r1.1
0
/api_docs/python/tf/nn/avg_pool)
### [tf.nn.avg_pool](https://www.tensorflow.org/versions/r1.1
3
/api_docs/python/tf/nn/avg_pool)
```
python
```
python
tf
.
nn
.
avg_pool
(
tf
.
nn
.
avg_pool
(
...
...
tensorflow2fluid/doc/tf.nn.bidirectional_dynamic_rnn.md
浏览文件 @
ede3f485
## tf.nn.bidirectional_dynamic_rnn
## tf.nn.bidirectional_dynamic_rnn
### [tf.nn.bidirectional_dynamic_rnn](https://www.tensorflow.org/api_docs/python/tf/nn/bidirectional_dynamic_rnn)
### [tf.nn.bidirectional_dynamic_rnn](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/bidirectional_dynamic_rnn)
```
python
```
python
tf
.
nn
.
bidirectional_dynamic_rnn
(
tf
.
nn
.
bidirectional_dynamic_rnn
(
...
...
tensorflow2fluid/doc/tf.nn.conv2d.md
浏览文件 @
ede3f485
## tf.nn.conv2d
## tf.nn.conv2d
### [tf.nn.conv2d](https://www.tensorflow.org/api_docs/python/tf/nn/conv2d)
### [tf.nn.conv2d](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/conv2d)
```
python
```
python
tf
.
nn
.
conv2d
(
tf
.
nn
.
conv2d
(
...
...
tensorflow2fluid/doc/tf.nn.conv2d_transpose.md
浏览文件 @
ede3f485
## tf.nn.conv2d_transpose
## tf.nn.conv2d_transpose
### [tf.nn.conv2d_transpose](https://www.tensorflow.org/api_docs/python/tf/nn/conv2d_transpose)
### [tf.nn.conv2d_transpose](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/conv2d_transpose)
```
python
```
python
tf
.
nn
.
conv2d_transpose
(
tf
.
nn
.
conv2d_transpose
(
value
,
value
,
...
...
tensorflow2fluid/doc/tf.nn.conv3d_transpose.md
浏览文件 @
ede3f485
## tf.nn.conv3d_transpose
## tf.nn.conv3d_transpose
### [tf.nn.conv3d_transpose](https://www.tensorflow.org/api_docs/python/tf/nn/conv3d_transpose)
### [tf.nn.conv3d_transpose](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/conv3d_transpose)
```
python
```
python
tf
.
nn
.
conv3d_transpose
(
tf
.
nn
.
conv3d_transpose
(
value
,
value
,
...
...
tensorflow2fluid/doc/tf.nn.depthwise_conv2d.md
浏览文件 @
ede3f485
## tf.nn.depthwise_conv2d
## tf.nn.depthwise_conv2d
### [tf.nn.depthwise_conv2d](https://www.tensorflow.org/api_docs/python/tf/nn/depthwise_conv2d)
### [tf.nn.depthwise_conv2d](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/depthwise_conv2d)
```
python
```
python
tf
.
nn
.
depthwise_conv2d
(
tf
.
nn
.
depthwise_conv2d
(
...
...
tensorflow2fluid/doc/tf.nn.dropout.md
浏览文件 @
ede3f485
## tf.dropout
## tf.dropout
### [tf.nn.dropout](https://www.tensorflow.org/api_docs/python/tf/nn/dropout)
### [tf.nn.dropout](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/dropout)
```
python
```
python
tf
.
nn
.
dropout
(
tf
.
nn
.
dropout
(
x
,
x
,
...
...
tensorflow2fluid/doc/tf.nn.dynamic_rnn.md
浏览文件 @
ede3f485
## tf.nn.dynamic_rnn
## tf.nn.dynamic_rnn
### [tf.nn.dynamic_rnn](https://www.tensorflow.org/api_docs/python/tf/nn/dynamic_rnn)
### [tf.nn.dynamic_rnn](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/dynamic_rnn)
```
python
```
python
tf
.
nn
.
dynamic_rnn
(
tf
.
nn
.
dynamic_rnn
(
cell
,
cell
,
...
...
tensorflow2fluid/doc/tf.nn.l2_normalize.md
浏览文件 @
ede3f485
## tf.nn.l2_normalize
## tf.nn.l2_normalize
### [tf.nn.l2_normalize](https://www.tensorflow.org/api_docs/python/tf/math/l2_normalize)
### [tf.nn.l2_normalize](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/l2_normalize)
```
python
```
python
tf
.
math
.
l2_normalize
(
tf
.
math
.
l2_normalize
(
...
...
tensorflow2fluid/doc/tf.nn.lrn.md
浏览文件 @
ede3f485
## tf.nn.lrn
## tf.nn.lrn
### [tf.nn.lrn](https://www.tensorflow.org/api_docs/python/tf/nn/local_response_normalization)
### [tf.nn.lrn](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/local_response_normalization)
```
python
```
python
tf
.
nn
.
local_response_normalization
(
tf
.
nn
.
local_response_normalization
(
...
...
tensorflow2fluid/doc/tf.nn.max_pool.md
浏览文件 @
ede3f485
## tf.nn.max_pool
## tf.nn.max_pool
### [tf.nn.max_pool](https://www.tensorflow.org/api_docs/python/tf/nn/max_pool)
### [tf.nn.max_pool](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/max_pool)
```
python
```
python
tf
.
nn
.
max_pool
(
tf
.
nn
.
max_pool
(
...
...
tensorflow2fluid/doc/tf.nn.reduce_logsumexp.md
浏览文件 @
ede3f485
## tf.math.reduce_logsumexp
## tf.math.reduce_logsumexp
### [tf.math.reduce_logsumexp](https://www.tensorflow.org/api_docs/python/tf/math/reduce_logsumexp)
### [tf.math.reduce_logsumexp](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/reduce_logsumexp)
```
python
```
python
tf
.
math
.
log_softmax
(
tf
.
math
.
log_softmax
(
logits
,
logits
,
...
...
tensorflow2fluid/doc/tf.nn.rnn_cell.LSTMCell.md
浏览文件 @
ede3f485
## tf.nn.rnn_cell.LSTMCell
## tf.nn.rnn_cell.LSTMCell
### [tf.nn.rnn_cell.LSTMCell](https://www.tensorflow.org/api_docs/python/tf/nn/rnn_cell/LSTMCell)
### [tf.nn.rnn_cell.LSTMCell](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/rnn_cell/LSTMCell)
```
python
```
python
tf
.
nn
.
rnn_cell
.
LSTMCell
(
tf
.
nn
.
rnn_cell
.
LSTMCell
(
...
...
tensorflow2fluid/doc/tf.nn.rnn_cell.MultiRNNCell.md
浏览文件 @
ede3f485
## tf.nn.rnn_cell.MultiRNNCell
## tf.nn.rnn_cell.MultiRNNCell
### [tf.nn.rnn_cell.MultiRNNCell](https://www.tensorflow.org/api_docs/python/tf/nn/rnn_cell/MultiRNNCell)
### [tf.nn.rnn_cell.MultiRNNCell](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/rnn_cell/MultiRNNCell)
```
python
```
python
tf
.
nn
.
rnn_cell
.
MultiRNNCell
(
__init__
(
cells
,
cells
,
state_is_tuple
=
True
state_is_tuple
=
True
)
)
...
...
tensorflow2fluid/doc/tf.nn.separable_conv2d.md
浏览文件 @
ede3f485
## tf.nn.separable_conv2d
## tf.nn.separable_conv2d
### [tf.nn.separable_conv2d](https://www.tensorflow.org/api_docs/python/tf/nn/separable_conv2d)
### [tf.nn.separable_conv2d](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/separable_conv2d)
```
python
```
python
tf
.
nn
.
separable_conv2d
(
tf
.
nn
.
separable_conv2d
(
input
,
input
,
...
...
tensorflow2fluid/doc/tf.nn.softmax_cross_entropy_with_logits.md
浏览文件 @
ede3f485
## tf.nn.softmax_cross_entropy_with_logits
## tf.nn.softmax_cross_entropy_with_logits
### [tf.nn.rnn_cell.MultiRNNCell](https://www.tensorflow.org/api_docs/python/tf/nn/softmax_cross_entropy_with_logits)
### [tf.nn.rnn_cell.MultiRNNCell](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/softmax_cross_entropy_with_logits)
```
python
```
python
tf
.
nn
.
softmax_cross_entropy_with_logits
(
tf
.
nn
.
softmax_cross_entropy_with_logits
(
...
@@ -20,7 +20,8 @@ paddle.fluid.layers.softmax_with_cross_entropy(
...
@@ -20,7 +20,8 @@ paddle.fluid.layers.softmax_with_cross_entropy(
soft_label
=
False
,
soft_label
=
False
,
ignore_index
=-
100
,
ignore_index
=-
100
,
numeric_stable_mode
=
False
,
numeric_stable_mode
=
False
,
return_softmax
=
False
return_softmax
=
False
,
axis
=-
1
)
)
```
```
...
...
tensorflow2fluid/doc/tf.nn.top_k.md
浏览文件 @
ede3f485
## tf.nn.top_k
## tf.nn.top_k
### [tf.nn.top_k](https://www.tensorflow.org/api_docs/python/tf/nn/top_k)
### [tf.nn.top_k](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/nn/top_k)
```
python
```
python
tf
.
math
.
top_k
(
tf
.
math
.
top_k
(
input
,
input
,
...
...
tensorflow2fluid/doc/tf.one_hot.md
浏览文件 @
ede3f485
## tf.one_hot
## tf.one_hot
### [tf.one_hot](https://www.tensorflow.org/api_docs/python/tf/one_hot)
### [tf.one_hot](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/one_hot)
```
python
```
python
tf
.
one_hot
(
tf
.
one_hot
(
indices
,
indices
,
...
...
tensorflow2fluid/doc/tf.pad.md
浏览文件 @
ede3f485
## tf.pad
## tf.pad
### [tf.pad](https://www.tensorflow.org/api_docs/python/tf/pad)
### [tf.pad](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/pad)
```
python
```
python
tf
.
pad
(
tf
.
pad
(
tensor
,
tensor
,
...
...
tensorflow2fluid/doc/tf.placeholder.md
浏览文件 @
ede3f485
## tf.placeholder
## tf.placeholder
### [tf.placeholder](https://www.tensorflow.org/api_docs/python/tf/placeholder)
### [tf.placeholder](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/placeholder)
```
python
```
python
tf
.
placeholder
(
tf
.
placeholder
(
dtype
,
dtype
,
...
...
tensorflow2fluid/doc/tf.pow.md
浏览文件 @
ede3f485
## tf.pow
## tf.pow
### [tf.pow](https://www.tensorflow.org/api_docs/python/tf/math/pow)
### [tf.pow](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/pow)
```
python
```
python
tf
.
math
.
pow
(
tf
.
math
.
pow
(
...
...
tensorflow2fluid/doc/tf.print.md
浏览文件 @
ede3f485
## tf.print
## tf.print
### [tf.print](https://www.tensorflow.org/api_docs/python/tf/print)
### [tf.print](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/print)
```
python
```
python
tf
.
print
(
tf
.
print
(
...
...
tensorflow2fluid/doc/tf.reshape.md
浏览文件 @
ede3f485
## tf.reshape
## tf.reshape
### [tf.reshape](https://www.tensorflow.org/api_docs/python/tf/reshape)
### [tf.reshape](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/reshape)
```
python
```
python
tf
.
reshape
(
tf
.
reshape
(
tensor
,
tensor
,
...
@@ -38,4 +37,3 @@ out = fluid.layers.reshape(t, [-1, 6])
...
@@ -38,4 +37,3 @@ out = fluid.layers.reshape(t, [-1, 6])
# 输出 tensor out 的 shape 为[3, 2, 2]
# 输出 tensor out 的 shape 为[3, 2, 2]
out
=
fluid
.
layers
.
reshape
(
t
,
[
0
,
2
,
2
])
out
=
fluid
.
layers
.
reshape
(
t
,
[
0
,
2
,
2
])
```
```
\ No newline at end of file
tensorflow2fluid/doc/tf.reverse_sequence.md
浏览文件 @
ede3f485
## tf.reverse_sequence
## tf.reverse_sequence
### [tf.reverse_sequence](https://www.tensorflow.org/api_docs/python/tf/reverse_sequence)
### [tf.reverse_sequence](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/reverse_sequence)
```
python
```
python
tf
.
reverse_sequence
(
tf
.
reverse_sequence
(
...
...
tensorflow2fluid/doc/tf.scatter_update.md
浏览文件 @
ede3f485
## tf.scatter_update
## tf.scatter_update
### [tf.scatter_update](https://www.tensorflow.org/api_docs/python/tf/scatter_update)
### [tf.scatter_update](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/scatter_update)
```
python
```
python
tf
.
scatter_update
(
tf
.
scatter_update
(
...
@@ -19,7 +19,8 @@ paddle.fluid.layers.scatter(
...
@@ -19,7 +19,8 @@ paddle.fluid.layers.scatter(
input
,
input
,
index
,
index
,
updates
,
updates
,
name
=
None
name
=
None
,
overwrite
=
True
)
)
```
```
...
@@ -32,7 +33,7 @@ PaddlePaddle:`index`只支持1-d Variable。
...
@@ -32,7 +33,7 @@ PaddlePaddle:`index`只支持1-d Variable。
#### 其他
#### 其他
Tensorflow:
`updates`
支持numpy-style broadcasting;
Tensorflow:
`updates`
支持numpy-style broadcasting;
PaddlePaddle:
`updates`
要求其rank与
`input`
相同,同时
`updates.shape[0]`
等于
`index.shape[0]`
。
PaddlePaddle:
`updates`
要求其rank与
`input`
相同,同时
`updates.shape[0]`
等于
`index.shape[0]`
。
此外
`overwrite`
参数提供了当存在重复index时,两种不同的梯度更新策略。
### 代码示例
### 代码示例
```
```
...
...
tensorflow2fluid/doc/tf.slice.md
浏览文件 @
ede3f485
## tf.slice
## tf.slice
### [tf.slice](https://www.tensorflow.org/api_docs/python/tf/slice)
### [tf.slice](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/slice)
```
python
```
python
tf
.
slice
(
tf
.
slice
(
input_
,
input_
,
...
...
tensorflow2fluid/doc/tf.split.md
浏览文件 @
ede3f485
## tf.split
## tf.split
### [tf.split](https://www.tensorflow.org/api_docs/python/tf/split)
### [tf.split](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/split)
```
python
```
python
tf
.
split
(
tf
.
split
(
...
...
tensorflow2fluid/doc/tf.squared_difference.md
浏览文件 @
ede3f485
## tf.squared_difference
## tf.squared_difference
### [tf.squared_diffenrece](https://www.tensorflow.org/api_docs/python/tf/math/squared_difference)
### [tf.squared_diffenrece](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/math/squared_difference)
```
python
```
python
tf
.
math
.
squared_difference
(
tf
.
math
.
squared_difference
(
x
,
x
,
...
...
tensorflow2fluid/doc/tf.stop_gradient.md
浏览文件 @
ede3f485
## tf.stop_gradient
## tf.stop_gradient
### [tf.stop_gradient](https://www.tensorflow.org/api_docs/python/tf/stop_gradient)
### [tf.stop_gradient](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/stop_gradient)
```
python
```
python
tf
.
stop_gradient
(
tf
.
stop_gradient
(
input
,
input
,
...
...
tensorflow2fluid/doc/tf.while_loop.md
浏览文件 @
ede3f485
## tf.while_loop
## tf.while_loop
### [tf.while_loop](https://www.tensorflow.org/api_docs/python/tf/while_loop)
### [tf.while_loop](https://www.tensorflow.org/
versions/r1.13/
api_docs/python/tf/while_loop)
```
python
```
python
tf
.
while_loop
(
tf
.
while_loop
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录