![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
认真搬砖,专心搞钱
全栈方向,前后端、数据库都有接触,希望能将自己用到的技术做成一个个专栏
展开
-
tensorflow --- 常量、变量和矩阵基本操作
感谢https://github.com/aymericdamien/TensorFlow-Examples提供的学习资料 1.常量的基本操作 a = tf.constant(2) b = tf.constant(3) with tf.Session() as sess: print("a=2, b = 3") print("Addition with constants...原创 2019-03-02 14:44:08 · 795 阅读 · 0 评论 -
tensorflow--图像显示、解码、写入
1. 图像显示、解码、写入 image_data = tf.image.decode_jpeg(image_raw_data) 解码原始图像,解码输出是tensor image_data.eval() 对解码后tensor转换为ndarray, 显示和写入图像时均需要转换为ndarray #--coding--:utf-8 import tensorflow as tf impor...原创 2019-03-02 15:29:40 · 469 阅读 · 0 评论