This is a legacy API for inspecting the type signature of dataset elements. In
TF 2, you should use the tf.data.Dataset.element_spec attribute instead.
A (nested) structure of Python type objects matching the structure of the
dataset / iterator elements and specifying the class of the individual
components.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.data.get_output_classes\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/data/ops/dataset_ops.py#L4380-L4399) |\n\nReturns the output classes for elements of the input dataset / iterator. \n\n tf.compat.v1.data.get_output_classes(\n dataset_or_iterator\n )\n\n\u003cbr /\u003e\n\nMigrate to TF2\n--------------\n\n\u003cbr /\u003e\n\n| **Caution:** This API was designed for TensorFlow v1. Continue reading for details on how to migrate from this API to a native TensorFlow v2 equivalent. See the [TensorFlow v1 to TensorFlow v2 migration guide](https://www.tensorflow.org/guide/migrate) for instructions on how to migrate the rest of your code.\n\nThis is a legacy API for inspecting the type signature of dataset elements. In\nTF 2, you should use the [`tf.data.Dataset.element_spec`](../../../../tf/data/Dataset#element_spec) attribute instead.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nDescription\n-----------\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------------|-----------------------------------------------------------------------------------------------------------|\n| `dataset_or_iterator` | A [`tf.data.Dataset`](../../../../tf/data/Dataset) or [`tf.data.Iterator`](../../../../tf/data/Iterator). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A (nested) structure of Python `type` objects matching the structure of the dataset / iterator elements and specifying the class of the individual components. ||\n\n\u003cbr /\u003e"]]