资源简介

【源码】Tensorflow 实战Google深度学习框架 源码 zip

资源截图

代码片段和文件信息

import tensorflow as tf

INPUT_NODE = 784
OUTPUT_NODE = 10
layer1_NODE = 500

def get_weight_variable(shape regularizer):
    weights = tf.get_variable(“weights“ shape initializer=tf.truncated_normal_initializer(stddev=0.1))
    if regularizer != None: tf.add_to_collection(‘losses‘ regularizer(weights))
    return weights


def inference(input_tensor regularizer):
    with tf.variable_scope(‘layer1‘):

        weights = get_weight_variable([INPUT_NODE layer1_NODE] regularizer)
        biases = tf.get_variable(“biases“ [layer1_NODE] initializer=tf.constant_initializer(0.0))
        layer1 = tf.nn.relu(tf.matmul(input_tensor weights) + biases)

    with tf.variable_scope(‘layer2‘):
        weights = get_weight_variable([layer1_NODE OUTPUT_NODE] regularizer)
        biases = tf.get_variable(“biases“ [OUTPUT_NODE] initializer=tf.constant_initializer(0.0))
        layer2 = tf.matmul(layer1 weights) + biases

    return layer2

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-31 10:24  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\
     目录           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\
     目录           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter03\
     文件        5343  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter03\1. 鍥撅紝寮犻噺鍙婁細璇?ipynb
     文件        3532  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter03\2. 涓夊眰绠€鍗曠缁忕綉缁滅殑鍓嶅悜浼犳挱绠楁硶.ipynb
     文件        4340  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter03\3. 瀹屾暣绁炵粡缃戠粶鏍蜂緥绋嬪簭.ipynb
     目录           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter04\
     文件        7329  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter04\1. 鑷畾涔夋崯澶卞嚱鏁?ipynb
     文件        5671  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter04\2. 瀛︿範鐜囩殑璁剧疆.ipynb
     文件      136337  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter04\3. 姝e垯鍖?ipynb
     文件        2359  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter04\4. 婊戝姩骞冲潎妯″瀷.ipynb
     目录           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\
     文件       13671  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\1. MNIST璇诲彇鏁版嵁.ipynb
     目录           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\
     文件        7710  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\1. 鍏ㄦā鍨?ipynb
     文件        7515  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\2. 涓嶄娇鐢ㄦ鍒欏寲.ipynb
     文件        7341  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\3. 涓嶄娇鐢ㄦ寚鏁拌“鍑忕殑瀛︿範鐜?ipynb
     文件        7675  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\4. 涓嶄娇鐢ㄦ縺娲诲嚱鏁?ipynb
     文件        7235  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\5. 涓嶄娇鐢ㄩ殣钘忓眰.ipynb
     文件        7292  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\2. TensorFlow璁粌绁炵粡缃戠粶\6. 涓嶄娇鐢ㄦ粦鍔ㄥ钩鍧?ipynb
     文件        3890  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\3. 鍙橀噺绠$悊.ipynb
     文件        2872  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\4.1. ckpt鏂囦欢淇濆瓨鏂规硶.ipynb
     文件        2919  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\4.2.1 婊戝姩骞冲潎绫荤殑淇濆瓨.ipynb
     文件        1188  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\4.2.2 variables_to_restore鍑芥暟鐨勪娇鐢ㄦ牱渚?ipynb
     文件        2422  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\4.3. pb鏂囦欢淇濆瓨鏂规硶.ipynb
     文件           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\5. MNIST鏈€浣冲疄璺?
     目录           0  2017-04-20 10:26  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\5. MNIST鏈€浣冲疄璺?Data_sets\
     目录           0  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\5. MNIST鏈€浣冲疄璺?Data_sets\MNIST_data\
     文件     9912422  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\5. MNIST鏈€浣冲疄璺?Data_sets\MNIST_data\train-images-idx3-ubyte.gz
     文件       28881  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\5. MNIST鏈€浣冲疄璺?Data_sets\MNIST_data\train-labels-idx1-ubyte.gz
     文件        3834  2017-03-04 19:44  TensorFlow瀹炴垬Google娣卞害瀛︿範妗嗘灦\0.12.0\Chapter05\5. MNIST鏈€浣冲疄璺?mnist_eval.ipynb
............此处省略248个文件信息

评论

共有 条评论