<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>AI</anon>
  </categories>
  <description>作成したTFRecordが想定通りのフォーマットで作られているかを確認したい場合。 tf.data.TFRecordDataset([filepath]) で読み込むと、多分データが必要になるまで読み込まないようになるのでデータを確認出来ず困る（tf.Session()でSessionを開始してsess.runすればいいのかも知れないけど。。） 以下のようにするとJSON形式の文字列として出力させられるので簡単に中身を確認出来る。 record_iterator = tf.python_io.tf_record_iterator(path=&quot;train.tfrecord&quot;) for strin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2016%2F11%2F13%2F000000&quot; title=&quot;TensorFlowのTFRecordファイルの中身を確認する方法 - 日々精進&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>2016-11-13 00:00:00</published>
  <title>TensorFlowのTFRecordファイルの中身を確認する方法</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/2016/11/13/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
