# tf.raw_ops.DatasetFromGraph

<br />

Creates a dataset from the given `graph_def`.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.DatasetFromGraph`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/DatasetFromGraph)

<br />

    tf.raw_ops.DatasetFromGraph(
        graph_def, name=None
    )

Creates a dataset from the provided `graph_def`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `graph_def` | A `Tensor` of type `string`. The graph representation of the dataset (as serialized GraphDef). |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `variant`. ||

<br />