-
大小:文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-06-21
- 語言: 其他
- 標簽: TensorFlow??
資源簡介
TensorFlow實戰Google深度學習框架
代碼片段和文件信息
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?02:24??TensorFlow實戰Google深度學習框架\
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\0.12.1\
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\0.12.0\
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\
?????文件?????????949??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\mnist_inference.py
?????文件????????6100??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\5.?同步更新模式樣例程序.py
?????文件????????5550??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\4.?異步更新模式樣例程序.py
?????文件?????????856??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\3.?分布式TensorFlow.py
?????文件????????7031??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\2.?多GPU并行.py
?????文件?????????975??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter10\1.?GPU基本操作.py
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter09\
?????文件?????????949??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter09\mnist_inference.py
?????文件????????5801??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter09\3.?監控指標可視化.ipynb
?????文件????????5657??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter09\2.?改造后的mnist_train.ipynb
?????文件????????2427??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter09\1.?命名空間.ipynb
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\
?????文件????????4164??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\reader.py
?????文件???????40764??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\5.?預測正弦函數.ipynb
?????文件????????4745??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\4.?SKlearn封裝例子.ipynb
?????文件???????10251??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\3.?使用循環神經網絡實現語言模型.ipynb
?????文件????????3652??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\2.?PTB數據集介紹.ipynb
?????文件????????2115??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter08\1.?循環神經網絡前向傳播.ipynb
?????目錄???????????0??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\
?????文件????????5706??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\6.?輸入數據處理框架.ipynb
?????文件????????4331??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\5.?輸入文件隊列.ipynb
?????文件????????1792??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\4.?多線程隊列操作.ipynb
?????文件????????2891??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\3.?隊列操作.ipynb
?????文件?????2137858??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\2.2.?圖像預處理完整樣例.ipynb
?????文件?????3107055??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\2.1.?TensorFlow圖像處理函數.ipynb
?????文件????????3968??2017-03-04?11:44??TensorFlow實戰Google深度學習框架\1.0.0\Chapter07\1.?TFRecord樣例程序.ipynb
............此處省略245個文件信息
評論
共有 條評論