
TensorFlow
GavinMoreYoung
Dream again small also not too small,can't not have too big again
展开
-
02040208TensorFlow Travel
Code Resource:https://github.com/MoreYoungGavin/02040208_Study_TensorFlowGo! Let is TensorFlow together,TensorFlow is Tensor and Flow.原创 2019-02-04 15:34:09 · 198 阅读 · 0 评论 -
C7:TensorFlow Abstractions and Simplifications
Linear RegressionMSEboston = datasets.load_boston()x_data = preprocessing.StandardScaler().fit_transform(boston.data)y_data = boston.targetx = tf.placeholder(tf.float64,shape=(None,13))y_true...原创 2019-02-08 22:47:13 · 236 阅读 · 0 评论 -
C6:Word Vectors,Advanced RNN,and Embedding Visualization
Word2vecbatch_size = 64embedding_dimension = 5negative_samples = 8LOG_DIR = "logs/word2vec_intro"digit_to_word_map = {1: "One", 2: "Two", 3: "Three", 4: "Four", 5: "Five",6: "Six"原创 2019-02-08 22:41:35 · 255 阅读 · 0 评论 -
C5:Text,Sequences and Visualization
Scan How to do it?elems = np.array(["T","e","n","s","o","r"," ","F","l","o","w"])scan_sum = tf.scan(lambda a, x:a+x,elems)sess = tf.Inter原创 2019-02-08 22:38:41 · 209 阅读 · 0 评论 -
C4:Convolutional Neural Networks
Convolutiontf.nn,conv2d(x,W,strides=[1,1,1,1],padding=’SAME)Poolingtf.nn.max_pool(x,ksize=[1,2,2,1],strides=[1,2,2,1],padding=’SAME)Dropouttf.nn.dropout(layer,keep_prob=keep_prob)MNIST_...原创 2019-02-07 15:54:50 · 433 阅读 · 0 评论 -
C3:Uderstand TensorFlow Basics
Create Graph How to do it?a = tf.constant(5)b = tf.constant(2)c = tf.constant(3)d = tf.multiply(a, b)e = tf.add(c, b)f = tf.subtract(d, e)with tf.Session() as sess: ans = sess.run(f)...原创 2019-02-07 15:50:56 · 398 阅读 · 0 评论 -
C2:Run With TensorFlow
HelloWorldh = tf.constant("Hello")w = tf.constant(" World!")hw = h + wwith tf.Session() as sess: ans = sess.run(hw)print(ans)softmaxDATA_DIR = '/tmp/data'NUM_STEPS = 1000MINIBATCH_S...原创 2019-02-04 15:50:48 · 178 阅读 · 0 评论 -
improt tensorflow ImportError: DLL load failed
I think this type issue is version compatibility problem.you need find other version in official website or to reduce current version.I begin use pip install tensorflow,see the issue,then,I am also ...原创 2019-02-04 15:47:16 · 267 阅读 · 0 评论 -
C1:Install TensorFlow
Pip install tensorflow原创 2019-02-04 15:35:11 · 155 阅读 · 0 评论 -
C8:Queues,Threads,and Reading Data
TFrecord Read and Writesave_dir = "D:\\mnist"data_sets = mnist.read_data_sets(save_dir,dtype=tf.uint8,reshape=False,validation_size=1000)data_splits = ["train", "test", "validation"]for d in ran...原创 2019-02-08 22:49:01 · 226 阅读 · 0 评论