j35*_*t3r 2 machine-learning computer-vision tensorflow
我想建立一个神经网络,我问自己这两个函数之间是否存在差异?
tf.nn.tanh vs tf.tanh
很容易确认它们是相同的:
In [1]: import tensorflow as tf
In [2]: tf.nn.tanh
Out[2]: <function tensorflow.python.ops.math_ops.tanh>
In [3]: tf.tanh
Out[3]: <function tensorflow.python.ops.math_ops.tanh>
In [4]: tf.nn.tanh == tf.tanh
Out[4]: True
In [5]: tf.__version__
Out[5]: '0.11.0rc1'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4087 次 |
| 最近记录: |