Skip to content

Commit

Permalink
Merge pull request #2207 from eslam69:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 632362693
  • Loading branch information
copybara-github committed May 10, 2024
2 parents 7175b2b + 0fc9db1 commit eea8c52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/en/tutorials/load_data/tfrecord.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"id": "XftzX9CN_uGT"
},
"source": [
"For example, suppose you have a single observation from the dataset, `[False, 4, bytes('goat'), 0.9876]`. You can create and print the `tf.train.Example` message for this observation using `create_message()`. Each single observation will be written as a `Features` message as per the above. Note that the `tf.train.Example` [message](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/example.proto#L88) is just a wrapper around the `Features` message:"
"For example, suppose you have a single observation from the dataset, `[False, 4, bytes('goat'), 0.9876]`. You can create and print the `tf.train.Example` message for this observation using `serialize_example()`. Each single observation will be written as a `Features` message as per the above. Note that the `tf.train.Example` [message](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/example.proto#L88) is just a wrapper around the `Features` message:"
]
},
{
Expand All @@ -369,10 +369,10 @@
"source": [
"# This is an example observation from the dataset.\n",
"\n",
"example_observation = []\n",
"\n",
"serialized_example = serialize_example(False, 4, b'goat', 0.9876)\n",
"serialized_example.numpy()"
"example_observation = [False, 4, b'goat', 0.9876]\n",
"serialized_example = serialize_example(*example_observation)\n",
"serialized_example"

]
},
{
Expand Down

0 comments on commit eea8c52

Please sign in to comment.