摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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_... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文