{"author_name":"derwind","author_url":"https://blog.hatena.ne.jp/derwind/","url":"https://randommemory.hatenablog.com/entry/2022/03/19/203407","type":"rich","published":"2022-03-19 20:34:07","description":"\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u305f\u3044\u3002\u3044\u3064\u3082\u306e\u753b\u50cf\u306e\u3046\u3061\u306e 1 \u679a\u3092 2 \u5024\u5316\u3057\u305f\u3082\u306e\u3092\u8003\u3048\u308b\u3002 conv = nn.Conv2d(1, 1, kernel_size = 3, stride=1, padding=1, bias=False) kernel = np.array([[ [ [1., 1., 1.], [1., -8., 1.], [1., 1., 1.] ] ]]) conv.weight = Parameter(torch.from_numpy(kernel).float(), requires_grad=False) \u3067\u3001\u7573\u307f\u8fbc\u307f\u5c64\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u30e9\u30d7\u30e9\u30b7\u30a2\u30f3\u30d5\u30a3\u30eb\u30bf\u3092\u8a2d\u5b9a\u2026","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20220319/20220319202143.png","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2022%2F03%2F19%2F203407\" title=\"\u7573\u307f\u8fbc\u307f (1) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["machine_learning"],"version":"1.0","blog_url":"https://randommemory.hatenablog.com/","title":"\u7573\u307f\u8fbc\u307f (1)","provider_name":"Hatena Blog","width":"100%","provider_url":"https://hatena.blog"}