class_docstr: Operator that ensures an RNNCell runs on a particular device.
class_docstr_tok: ["Operator","that","ensures","an","RNNCell","runs","on","a","particular","device","."]
code: def zero_state(self, batch_size, dtype):
      with ops.name_scope_v2(type(self).__name__ + "ZeroState"):
          with ops.device(self._device):
              return self.cell.zero_state(batch_size, dtype)
  
imports: import hashlib
  import numbers
  import sys
  import types
  import warnings
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 4 for calling the DeviceWrapperBase obj's underlying member method code with example usage: obj.zero_state(batch_size, dtype) and returns: self