{"action":"created","issue":{"url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork/issues/7","repository_url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork","labels_url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork/issues/7/comments","events_url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork/issues/7/events","html_url":"https://github.com/2017-fall-DL-training-program/ConvNetwork/issues/7","id":270162996,"number":7,"title":"What is Plain network in Lab01?","user":{"login":"fansia","id":2776506,"avatar_url":"https://avatars2.githubusercontent.com/u/2776506?v=4","gravatar_id":"","url":"https://api.github.com/users/fansia","html_url":"https://github.com/fansia","followers_url":"https://api.github.com/users/fansia/followers","following_url":"https://api.github.com/users/fansia/following{/other_user}","gists_url":"https://api.github.com/users/fansia/gists{/gist_id}","starred_url":"https://api.github.com/users/fansia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fansia/subscriptions","organizations_url":"https://api.github.com/users/fansia/orgs","repos_url":"https://api.github.com/users/fansia/repos","events_url":"https://api.github.com/users/fansia/events{/privacy}","received_events_url":"https://api.github.com/users/fansia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-01T01:00:23Z","updated_at":"2017-11-01T05:11:01Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nbelowis the BasicBlock class which from a sample code of resnet.\r\nTo achieve plain net, could we just remove the resudual part in \"def forward\".\r\nIs that right?\r\n\r\n`class BasicBlock(nn.Module):\r\n    expansion = 1\r\n\r\n    def __init__(self, inplanes, planes, stride=1, downsample=None):\r\n        super(BasicBlock, self).__init__()\r\n        self.conv1 = conv3x3(inplanes, planes, stride)\r\n        self.bn1 = nn.BatchNorm2d(planes)\r\n        self.relu = nn.ReLU(inplace=True)\r\n        self.conv2 = conv3x3(planes, planes)\r\n        self.bn2 = nn.BatchNorm2d(planes)\r\n        self.downsample = downsample\r\n        self.stride = stride\r\n\r\n    def forward(self, x):\r\n        residual = x\r\n\r\n        out = self.conv1(x)\r\n        out = self.bn1(out)\r\n        out = self.relu(out)\r\n\r\n        out = self.conv2(out)\r\n        out = self.bn2(out)\r\n\r\n        if self.downsample is not None:\r\n            residual = self.downsample(x)\r\n\r\n        out += residual\r\n        out = self.relu(out)\r\n\r\n        return out`\r\n\r\n\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork/issues/comments/340979800","html_url":"https://github.com/2017-fall-DL-training-program/ConvNetwork/issues/7#issuecomment-340979800","issue_url":"https://api.github.com/repos/2017-fall-DL-training-program/ConvNetwork/issues/7","id":340979800,"user":{"login":"fansia","id":2776506,"avatar_url":"https://avatars2.githubusercontent.com/u/2776506?v=4","gravatar_id":"","url":"https://api.github.com/users/fansia","html_url":"https://github.com/fansia","followers_url":"https://api.github.com/users/fansia/followers","following_url":"https://api.github.com/users/fansia/following{/other_user}","gists_url":"https://api.github.com/users/fansia/gists{/gist_id}","starred_url":"https://api.github.com/users/fansia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fansia/subscriptions","organizations_url":"https://api.github.com/users/fansia/orgs","repos_url":"https://api.github.com/users/fansia/repos","events_url":"https://api.github.com/users/fansia/events{/privacy}","received_events_url":"https://api.github.com/users/fansia/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T05:11:01Z","updated_at":"2017-11-01T05:11:01Z","author_association":"NONE","body":"Hi Jia-Ren, \r\n\r\nThank you."}}
{"actor":{"display_login":"fansia"}}