<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>PyTorch</anon>
  </categories>
  <description>PyTorch でモデルを構築する方法として， torch.nn.Sequential を使用する torch.nn.Module のサブクラスを作る torch.nn.Module のサブクラスで torch.nn.functional を使用する の3個の方法があります*1． 1.torch.nn.Sequential を使用する nn.Sequential() に順番に記載していけばよいので簡単です*2． from torch import nn n = 4 ModelA = nn.Sequential( nn.Linear(1, n), nn.ReLU(), nn.Linear(n, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2023%2F09%2F27%2F002252&quot; title=&quot;PyTorch でモデル構築の比較 - みーのぺーじ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-27 00:22:52</published>
  <title>PyTorch でモデル構築の比較</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2023/09/27/002252</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
