Python
青之回忆
还有梦想,何必放弃!
展开
-
Tensorflow 激活函数 tf.nn.relu
Tensorflow 激活函数 tf.nn.relu介绍 这个函数的作用是计算激活函数 relu。将大于0的值持不变,小于0的值置为0。 tf.nn.relu(features, name = None Example import tensorflow as tf print(tf.nn.relu([-2., 0., -0., 3.]).numpy()) 上述程序输出结果为:[0. 0. 0. 3.] ...原创 2020-11-09 09:37:50 · 216 阅读 · 0 评论 -
Python的qrcode模块生成二维码
Python的qrcode模块生成二维码 记一次Python的qrcode模块生成二维码 import qrcode # 写入内容 text = "https://www.baidu.com" # 填充内容 img = qrcode.make(text) # 保存图片 img.save('qrcode.png') # 显示图片 img.show()原创 2020-09-17 18:34:56 · 122 阅读 · 0 评论