資源簡介
深度學習與PyTorch-代碼和PPT,基于pytorch的深度學習資料
代碼片段和文件信息
import??torch
from????torch?import?nn
class?AE(nn.Module):
????def?__init__(self):
????????super(AE?self).__init__()
????????#?[b?784]?=>?[b?20]
????????self.encoder?=?nn.Sequential(
????????????nn.Linear(784?256)
????????????nn.ReLU()
????????????nn.Linear(256?64)
????????????nn.ReLU()
????????????nn.Linear(64?20)
????????????nn.ReLU()
????????)
????????#?[b?20]?=>?[b?784]
????????self.decoder?=?nn.Sequential(
????????????nn.Linear(20?64)
????????????nn.ReLU()
????????????nn.Linear(64?256)
????????????nn.ReLU()
????????????nn.Linear(256?784)
????????????nn.Sigmoid()
????????)
????def?forward(self?x):
????????“““
????????:param?x:?[b?1?28?28]
????????:return:
????????“““
????????batchsz?=?x.size(0)
????????#?flatten
????????x?=?x.view(batchsz?784)
????????#?encoder
????????x?=?self.encoder(x)
????????#?decoder
????????x?=?self.decoder(x)
????????#?reshape
????????x?=?x.view(batchsz?1?28?28)
????????return?x?None
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\
?????文件???????????5??2019-03-27?00:58??DeepLearningTutorials-master\.gitignore
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\AutoEncoder實戰\
?????文件??????????18??2019-03-27?00:58??DeepLearningTutorials-master\AutoEncoder實戰\.gitignore
?????文件?????3654768??2019-03-27?00:58??DeepLearningTutorials-master\AutoEncoder實戰\AutoEncoders.pdf
?????文件?????????969??2019-03-27?00:58??DeepLearningTutorials-master\AutoEncoder實戰\ae.py
?????文件????????1710??2019-03-27?00:58??DeepLearningTutorials-master\AutoEncoder實戰\main.py
?????文件????????1468??2019-03-27?00:58??DeepLearningTutorials-master\AutoEncoder實戰\vae.py
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\
?????文件??????????18??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\.gitignore
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\.idea\
?????文件?????????453??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\.idea\Cifar10與ResNet18實戰.iml
?????文件?????????300??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\.idea\modules.xm
?????文件?????????183??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\.idea\vcs.xm
?????文件????????9390??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\.idea\workspace.xm
?????文件????????1706??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\lenet5.py
?????文件????????2370??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\main.py
?????文件????????2459??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\resnet.py
?????文件???????????0??2019-03-27?00:58??DeepLearningTutorials-master\Cifar10與ResNet18實戰\考慮到大家的GPU較小,我們這里的ResNet18是閹割版
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\Lesson01-初見PyTorch\
?????文件?????????353??2019-03-27?00:58??DeepLearningTutorials-master\Lesson01-初見PyTorch\autograd_demo.py
?????文件?????????317??2019-03-27?00:58??DeepLearningTutorials-master\Lesson01-初見PyTorch\demo.lua
?????文件??????935770??2019-03-27?00:58??DeepLearningTutorials-master\Lesson01-初見PyTorch\lesson1.pdf
?????文件?????????546??2019-03-27?00:58??DeepLearningTutorials-master\Lesson01-初見PyTorch\lesson1.py
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\Lesson02-開發環境準備\
?????文件??????971247??2019-03-27?00:58??DeepLearningTutorials-master\Lesson02-開發環境準備\lesson2.pdf
?????文件??????????83??2019-03-27?00:58??DeepLearningTutorials-master\Lesson02-開發環境準備\main.py
?????文件?????????809??2019-03-27?00:58??DeepLearningTutorials-master\README.md
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\lesson03-簡單回歸案例\
?????文件??????766408??2019-03-27?00:58??DeepLearningTutorials-master\lesson03-簡單回歸案例\lesson3.pdf
?????目錄???????????0??2019-03-27?00:58??DeepLearningTutorials-master\lesson04-簡單回歸案例-PyTorch求解\
............此處省略132個文件信息
評論
共有 條評論