<?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>分類器への入力部分を見ると、 class AttentionDecoder: def forward(self, xs, enc_hs): ... # enc_hs = ['吾輩', 'は', ...], dec_hs = ['i', 'am', ...], c = '吾輩' c = self.attention_forward(enc_hs, dec_hs) # '吾輩'+'i' out = np.concatename((c, dec_hs), axis=&quot;) score = self.affine.forward(out) return score となっているので、attention …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2022%2F03%2F05%2F003017&quot; title=&quot;Attention (4) - らんだむな記憶&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>2022-03-05 00:30:17</published>
  <title>Attention (4)</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2022/03/05/003017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
