<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>changlikesdesktop</author_name>
  <author_url>https://blog.hatena.ne.jp/changlikesdesktop/</author_url>
  <blog_title>オッサンはDesktopが好き</blog_title>
  <blog_url>https://changlikesdesktop.hatenablog.com/</blog_url>
  <categories>
    <anon>機械学習</anon>
  </categories>
  <description>こんにちは．changです． 今回は，ディープ・ラーニングの推論処理を高速化します． 先日作った異常検知のビューワーですが*1*2，一度の推論に6秒かかっていました． 何故こんなにかかるのか疑問に思って調べてみると，tensorflowのSessionを立てるのに時間が掛かっていることが判りました． これを改善するテクニックを紹介します． 0. Sessionとは？ tensorflowには，graphとSessionという独特の概念があります． こちらの方*3によると: graph: 計算の定義．これ自身は計算をしないし，値も保持しない． session: グラフやグラフの一部を実行する．グ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchanglikesdesktop.hatenablog.com%2Fentry%2F2020%2F09%2F01%2F061353&quot; title=&quot;tensorflowのSessionを予め立てて，推論を高速化する - オッサンはDesktopが好き&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/c/changlikesdesktop/20200901/20200901054543.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-01 06:13:53</published>
  <title>tensorflowのSessionを予め立てて，推論を高速化する</title>
  <type>rich</type>
  <url>https://changlikesdesktop.hatenablog.com/entry/2020/09/01/061353</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
