{"blog_title":"HTN20190109\u306e\u65e5\u8a18","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2025%2F12%2F03%2F224927\" title=\"ResBlock - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/HTN20190109/","author_name":"HTN20190109","categories":["DL"],"blog_url":"https://htn20190109.hatenablog.com/","title":"ResBlock","url":"https://htn20190109.hatenablog.com/entry/2025/12/03/224927","height":"190","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","published":"2025-12-03 22:49:27","type":"rich","description":"import torchimport torch.nn as nn # --- ResNet \u57fa\u672c\u30d6\u30ed\u30c3\u30af\u5b9a\u7fa9 ---class ResBlock(nn.Module): def __init__(self, in_channels, out_channels, stride=1): super().__init__() self.expansion = 1 # \u7b2c\u4e00\u5c64 self.conv1 = nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=stride, padding=1, bias=False) self.bn1 =\u2026","width":"100%"}