首页 > 其他 > 详细

tensorflow softplus应用

时间:2017-07-22 10:20:14      阅读:1101      评论:0      收藏:0      [点我收藏+]

 

1、softplus函数表达式

技术分享

图像:

技术分享

2、tensorflow 举例

import tensorflow as tf

input=tf.constant([0,1,2,3],dtype=tf.float32)
output=tf.nn.softplus(input)

with tf.Session() as sess:
    print(input:)
    print(sess.run(input))
    print(output:)
    print(sess.run(output))
    sess.close()

 

输出结果:

input:
[ 0. 1. 2. 3.]
output:
[ 0.69314718    1.31326163      2.12692809    3.04858732]

 

tensorflow softplus应用

原文:http://www.cnblogs.com/lovephysics/p/7220444.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!