tensorflow随笔-tf.nn.softplus
生活随笔
收集整理的這篇文章主要介紹了
tensorflow随笔-tf.nn.softplus
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
tf.nn.softplus(features, name = None)
解釋:這個函數的作用是計算激活函數softplus,即log( exp( features ) + 1)。
使用例子:
#!/usr/bin/env python # -*- coding: utf-8 -*-import tensorflow as tfa = tf.constant([-1.0, 12.0]) with tf.Session() as sess:b = tf.nn.softplus(a)print sess.run(b)輸入參數:
features: 一個Tensor。數據類型必須是:float32,float64,int32,int64,uint8,int16或者int8。
name: (可選)為這個操作取一個名字。
輸出參數:
一個Tensor,數據類型和features相同。
總結
以上是生活随笔為你收集整理的tensorflow随笔-tf.nn.softplus的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: vue-cli3+与vue-cli2的区
- 下一篇: vue数组修改不触发视图更新、vue向响