Creates a dataset which reads data from the service.

This is useful when the dataset is registered by one process, then used in another process. When the same process is both registering and reading from the dataset, it is simpler to use instead.

Before using from_dataset_id, the dataset must have been registered with the service using register_dataset returns a dataset id for the registered dataset. That is the dataset_id which should be passed to from_dataset_id.

The element_spec argument indicates the tf.TypeSpecs for the elements produced by the dataset. Currently element_spec must be explicitly specified, and match the dataset registered under dataset_id. element_spec defaults to None so that in the future we can support automatically discovering the element_spec by querying the service. is a convenience method which combines register_dataset and from_dataset_id into a dataset transformation. See the documentation for for more detail about how from_dataset_id works.

dispatcher =
dispatcher_address ="://")[1]
worker =