From 227a8c50aa00c094ad03fcafebfc428735a235ca Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 17 Apr 2019 20:11:54 +0800 Subject: [PATCH] Create tf.softmax.md --- tensorflow2fluid/doc/tf.softmax.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tensorflow2fluid/doc/tf.softmax.md diff --git a/tensorflow2fluid/doc/tf.softmax.md b/tensorflow2fluid/doc/tf.softmax.md new file mode 100644 index 0000000..a90e9bc --- /dev/null +++ b/tensorflow2fluid/doc/tf.softmax.md @@ -0,0 +1,27 @@ +## tf.softmax + +### [tf.softmax](https://www.tensorflow.org/api_docs/python/tf/nn/softmax) + +``` python +tf.nn.softmax( + logits, + axis=None, + name=None, + dim=None +) +``` + + +### [paddle.fluid.layers.softmax(http://paddlepaddle.org/documentation/docs/zh/1.3/api_cn/layers_cn.html#paddle.fluid.layers.softmax) +``` python +paddle.fluid.layers.softmax( + input, + use_cudnn=True, + name=None +) +``` +### 功能差异 + +#### 计算方式 +TensorFlow: 通过`axis`参数,在指定维度上进行计算,如若`axis`为`None`,则表示在最后一维上进行计算; +PaddlePaddle:使用整个输入数据的L2范数。 -- GitLab