<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snowman_88888</author_name>
  <author_url>https://blog.hatena.ne.jp/snowman_88888/</author_url>
  <blog_title>Seitaro Shinagawaの雑記帳</blog_title>
  <blog_url>https://snowman-88888.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>torchのnarrowメソッドがパッと見よくわからんので試してみた結果のメモ。 [Tensor] narrow(dim, index, size) ↑のサイトを参考にした。 narrowメソッドは何をするかというと、テンソル内部のある次元のある部分を切り取って返す関数である。ちなみに参照渡しなので注意。 [Tensor] narrow(dim, index, size)の3つの引数はそれぞれ、 ・dim:切り取る次元（行列（2次テンソル）なら行方向で切るか(1)列方向で切るか(2)の2種類 (ただし、dim &gt; 0) ・index:切り取る部分の始点 (ただし、1 &lt; index &lt;= Te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnowman-88888.hatenablog.com%2Fentry%2F2017%2F01%2F23%2F170348&quot; title=&quot;torchのnarrowメソッド - Seitaro Shinagawaの雑記帳&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>2017-01-23 17:03:48</published>
  <title>torchのnarrowメソッド</title>
  <type>rich</type>
  <url>https://snowman-88888.hatenablog.com/entry/2017/01/23/170348</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
