[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.nn.rnn_cell.DeviceWrapper\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/rnn_cell_impl.py#L1188-L1194) |\n\nOperator that ensures an RNNCell runs on a particular device.\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`tf.contrib.rnn.DeviceWrapper\\`\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.nn.rnn_cell.DeviceWrapper`](/api_docs/python/tf/compat/v1/nn/rnn_cell/DeviceWrapper)\n\n\u003cbr /\u003e\n\n tf.nn.rnn_cell.DeviceWrapper(\n *args, **kwargs\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|--------------------------------------------------------------------------------|\n| `cell` | An instance of `RNNCell`. |\n| `device` | A device string or function, for passing to [`tf.device`](../../../tf/device). |\n| `**kwargs` | dict of keyword arguments for base layer. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `graph` | DEPRECATED FUNCTION \u003cbr /\u003e | **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Stop using this property because tf.layers layers no longer track their graph. |\n| `output_size` | \u003cbr /\u003e |\n| `scope_name` | \u003cbr /\u003e \u003cbr /\u003e |\n| `state_size` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `get_initial_state`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/rnn_cell_impl.py#L281-L309) \n\n get_initial_state(\n inputs=None, batch_size=None, dtype=None\n )\n\n### `zero_state`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/rnn_cell_wrapper_impl.py#L428-L431) \n\n zero_state(\n batch_size, dtype\n )"]]