tensorflow
tensorflow框架的一些语句、用法
一位不愿暴露自己的小可爱
把时间分给睡眠
分给书籍
分给运动
分给花鸟树木和山川湖海
分给你对这个世界的热爱
当你开始做时间的主人
你会感受到平淡生活中
喷涌而出的平静的力量
要永远年轻,永远热爱
展开
-
tf.image.resize_bilinear
使用双线性插值调整images为size.tf.image.resize_bilinear( images, size, align_corners=False, name=None)输入图像可以是不同的类型,但输出图像总是浮点型的.参数:images:一个Tensor,必须是下列类型之一:int8,uint8,int16,uint16,int32,int64,bfloat16,half,float32,float64;4维的并且具有形状[batch, heigh原创 2020-10-20 13:59:04 · 937 阅读 · 0 评论 -
tensorflow中tf.reduce_prod()函数的使用
降纬函数:tensorflow 里有一类函数是以reduce开头的,reduce 有减少的意思,这里就是减少纬度的意思。import tensorflow as tfx = tf.constant([[1, 2, 3], [4, 5, 6]])y = tf.reduce_prod(x)with tf.Session() as sess: sess.run(tf.global_variables_initializer()) print(sess.run(y))结果是720原创 2020-10-20 09:40:05 · 536 阅读 · 0 评论