import torch import torch.utils.data as data import torch.nn as nn import torch.nn.functional as F import torchvision as tv import numpy as np import matplotlib.pyplot as plt from torchvision import transforms, datasets from torchvision.transforms import ToPILImage from torch.autograd import Variable from torch import optim from tensorboardX import SummaryWriter import os import datetime
def forward(self, x): out = self.conv1(x) out = self.bottleneck1(out) out = self.bottleneck2(out) out = self.bottleneck3(out) out = self.bottleneck4(out) out = self.conv2(out) out = self.pool1(out) out = out.view(-1, self.last_ch) out = self.Dense(out) return out