![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
傲笑风
让机器看懂世界
展开
-
tensorflow:使用卷积网络(CNN)实现mnist
tensorflow1.8.0+python3.6.4#coding=utf-8import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist=input_data.read_data_sets("MNIST_data",one_hot=True) #读取图片def weights(shape): #正态分布,标准差为0.1,范围为[-1,1] initial=tf.tr原创 2020-07-08 15:32:56 · 625 阅读 · 0 评论 -
tensorflow:使用全连接(full-connection)网络实现mnist
tensorflow1.8+python3.6.4#coding=utf-8import tensorflow as tf;import numpy as np;from tensorflow.examples.tutorials.mnist import input_data;mnist=input_data.read_data_sets("MNIST_data",one_hot=True);print(mnist.train.images.shape,mnist.train.labels原创 2020-07-08 15:26:31 · 680 阅读 · 0 评论