{"version":"1.0","height":"190","provider_name":"Hatena Blog","categories":["PyTorch"],"image_url":null,"title":"PyTorch \u306f\u30df\u30cb\u30d0\u30c3\u30c1\u5b66\u7fd2\u306b\u81ea\u52d5\u7684\u306b\u5bfe\u5fdc\u3059\u308b","provider_url":"https://hatena.blog","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2023%2F09%2F30%2F093336\" title=\"PyTorch \u306f\u30df\u30cb\u30d0\u30c3\u30c1\u5b66\u7fd2\u306b\u81ea\u52d5\u7684\u306b\u5bfe\u5fdc\u3059\u308b - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"atsuhiro-me","width":"100%","author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","blog_url":"https://pc.atsuhiro-me.net/","published":"2023-09-30 09:33:36","url":"https://pc.atsuhiro-me.net/entry/2023/09/30/093336","type":"rich","description":"PyTorch \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3044\u3066\uff0c\u7406\u89e3\u3067\u304d\u306a\u3044\u90e8\u5206\u304c\u3042\u308a\u307e\u3057\u305f\uff0e\u8a72\u5f53\u90e8\u5206\u3092\u629c\u7c8b\u3057\u3066\u5f15\u7528\u3057\u307e\u3059\uff0e class NeuralNetwork(nn.Module): def __init__(self): super().__init__() self.flatten = nn.Flatten() self.linear_relu_stack = nn.Sequential( nn.Linear(28 * 28, 512), nn.ReLU(), nn.Linear(512, 512), nn.ReLU(), nn.Linear(512, 10), ) def forward\u2026"}