TensorFlow学习笔记1.9:tf.nn.softmax()

tf.nn.softmax(
    logits,
    axis=None,
    name=None,
    dim=None
)

Computes softmax activations. (deprecated arguments)
计算softmax激活。(有弃用的参数)
SOME ARGUMENTS ARE DEPRECATED.
一些参数被弃用
They will be removed in a future version.
它们将在未来的版本中被删除
Instructions for updating: dim is deprecated, use axis instead
更新说明:dim被弃用,用axis代替
This function performs the equivalent of
这个函数的作用相当于:

softmax = tf.exp(logits) / tf.reduce_sum(tf.exp(logits), axis)
  • logits:
    A non-empty Tensor. 一个非空张量
    Must be one of the following types: half, float32, float64.必须是以下类型之一:half, float32, float64
  • axis:
    The dimension softmax would be performed on. 将被执行的softmax维度
    The default is -1 which indicates the last dimension.默认值是-1,表示最后一个维度。
  • name:
    A name for the operation (optional).操作的名称(可选)。
  • dim:
    Deprecated alias for axis. 弃用,axis的别名

你可能感兴趣的:(TensorFlow学习笔记1.9:tf.nn.softmax())