摘要: 1 #coding = utf-8 2 3 import collections 4 import tensorflow as tf 5 from datetime import datetime 6 import math 7 import time 8 9 slim = tf.contrib.slim 10 11 12 class Block... 阅读全文
posted @ 2017-12-23 23:57 yoyoball9999 阅读(9449) 评论(1) 推荐(3) 编辑
摘要: 1 #coding=utf-8 2 import tensorflow as tf 3 from datetime import datetime 4 import math 5 import time 6 slim = tf.contrib.slim 7 trunc_normal = lambda stddev: tf.truncated_normal_initi... 阅读全文
posted @ 2017-12-23 23:52 yoyoball9999 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 1 #coding = utf-8 2 from datetime import datetime 3 import tensorflow as tf 4 import time 5 import math 6 7 def conv_op(input_op, name, kh, kw, n_out, dh, dw, p): 8 n_in = input_... 阅读全文
posted @ 2017-12-23 23:49 yoyoball9999 阅读(3675) 评论(1) 推荐(0) 编辑
摘要: 1 #coding = utf-8 2 3 from datetime import datetime 4 import math 5 import time 6 import tensorflow as tf 7 8 batch_size = 32 9 num_batches = 1000 10 11 def print_activations(t... 阅读全文
posted @ 2017-12-23 23:44 yoyoball9999 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: 1 import cifar10, cifar10_input 2 import tensorflow as tf 3 import numpy as np 4 import time 5 import math 6 7 max_steps = 3000 8 batch_size = 128 9 data_dir = '/tmp/cifar10_data/c... 阅读全文
posted @ 2017-12-23 23:41 yoyoball9999 阅读(8016) 评论(0) 推荐(0) 编辑
摘要: 1 from tensorflow.examples.tutorials.mnist import input_data 2 import tensorflow as tf 3 4 mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) 5 sess = tf.InteractiveSession() 6 7... 阅读全文
posted @ 2017-12-23 23:36 yoyoball9999 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: 1 #coding = utf-8 2 from tensorflow.examples.tutorials.mnist import input_data 3 import tensorflow as tf 4 5 mnist = input_data.read_data_sets("MNIST_data/", one_hot = True) 6 #创建一个Intercative... 阅读全文
posted @ 2017-12-23 23:27 yoyoball9999 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: 1 #coding=utf-8 2 import numpy as np 3 import sklearn.preprocessing as prep 4 import tensorflow as tf 5 from tensorflow.examples.tutorials.mnist import input_data 6 7 def xavier_init(f... 阅读全文
posted @ 2017-12-23 23:20 yoyoball9999 阅读(2056) 评论(0) 推荐(0) 编辑