<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TadaoYamaoka</author_name>
  <author_url>https://blog.hatena.ne.jp/TadaoYamaoka/</author_url>
  <blog_title>TadaoYamaokaの開発日記</blog_title>
  <blog_url>https://tadaoyamaoka.hatenablog.com/</blog_url>
  <categories>
    <anon>dlshogi</anon>
  </categories>
  <description>torch.compile は、PyTorch 2.0 以降で導入された高速化機能で、既存の PyTorch コードをほとんど変更せずに JIT コンパイルして最適化できる仕組みである。 主に GPU 実行時のオーバーヘッド削減やカーネル融合によって性能を向上できる。dlshogiの train.py と ptl.py を torch.compile に対応して、どれくらい学習が速くなるか測定した。 torch.compile対応の実装 「--use_compile」オプションで、torch.compileの有効無効を切り替えられるようにした。Pytorchのtorch.compileの引数に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftadaoyamaoka.hatenablog.com%2Fentry%2F2026%2F05%2F09%2F210912&quot; title=&quot;【dlshogi】torch.compileに対応したら学習が1.6倍速くなった件 - TadaoYamaokaの開発日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/TadaoYamaoka/20260509/20260509203341.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-09 21:09:12</published>
  <title>【dlshogi】torch.compileに対応したら学習が1.6倍速くなった件</title>
  <type>rich</type>
  <url>https://tadaoyamaoka.hatenablog.com/entry/2026/05/09/210912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
