[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.data.prefetch_to_device\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/data/python/ops/prefetching_ops.py#L24-L41) |\n\nA transformation that prefetches dataset values to the given `device`. (deprecated) \n\n tf.contrib.data.prefetch_to_device(\n device, buffer_size=None\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`tf.data.experimental.prefetch_to_device(...)`](../../../tf/data/experimental/prefetch_to_device).\n| **Note:** Although the transformation creates a [`tf.data.Dataset`](../../../tf/data/Dataset), the transformation must be the final `Dataset` in the input pipeline.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|------------------------------------------------------------------------------------------------------|\n| `device` | A string. The name of a device to which elements will be prefetched. |\n| `buffer_size` | (Optional.) The number of elements to buffer on `device`. Defaults to an automatically chosen value. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Dataset` transformation function, which can be passed to [`tf.data.Dataset.apply`](../../../tf/data/Dataset#apply). ||\n\n\u003cbr /\u003e"]]