llgd.net
当前位置:首页 >> kErAs DEnsE >>

kErAs DEnsE

淡淡的喜欢,深深的爱!

data.py: #coding:utf-8"""Author:weponSource:https://github.com/wepe"""import osfrom PIL import Imageimport numpy as np#读取文件夹mnist下的42000张图片,图片为灰度图,所以为1通道,图像大小28*28#如果是将彩色图作为输入,则将1替换为3...

with tf.device('/gpu:0'): x = tf.placeholder(tf.float32, shape=(None, 20, 64)) y = LSTM(32)(x) # all ops in the LSTM layer will live on GPU:0 with tf.device('/gpu:1'): x = tf.placeholder(tf.float32, shape=(None, 20, 64)) y = LS...

网站首页 | 网站地图
All rights reserved Powered by www.llgd.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com