<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>machine_learning</anon>
  </categories>
  <description>6/layers/torch/Attention.py の実装を見てみたい。p.364 に Attention 層は式 (6.12) (6.13) (6.14) で見たスコア関数のどれを用いるかによってパラメータが変わってきますが、ここでは式 (6.13) を用いてみることにしましょう。 とあるので、\begin{align*} g(\bm{h}_s, \bm{h}_t) = \bm{h}_t^T W_a \bm{h}_s \end{align*}が使われることになることに注意しよう。なお、ゼロつく 2 では (6.14) の式が使われていた。以下の流れは基本的に p.360 をそのままコード…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F12%2F05%2F175952&quot; title=&quot;詳解ディープラーニング 第2版 (7) - らんだむな記憶&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>2021-12-05 17:59:52</published>
  <title>詳解ディープラーニング 第2版 (7)</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2021/12/05/175952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
