class_docstr: Operator adding dropout to inputs and outputs of the given cell.
class_docstr_tok: ["Operator","adding","dropout","to","inputs","and","outputs","of","the","given","cell","."]
code: def __init__(
      self, *args, **kwargs
  ):  # pylint: disable=useless-super-delegation
      super(DropoutWrapper, self).__init__(*args, **kwargs)
      if isinstance(self.cell, recurrent.LSTMCell):
          raise ValueError(
              "keras LSTM cell does not work with DropoutWrapper. "
              "Please use LSTMCell(dropout=x, recurrent_dropout=y) "
              "instead."
          )
  
imports: from tensorflow.python.keras.layers import recurrent
  from tensorflow.python.keras.layers.legacy_rnn import rnn_cell_wrapper_impl
  from tensorflow.python.keras.utils import tf_inspect
  from tensorflow.python.util.deprecation import deprecated
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new DropoutWrapper object from inherited base classes: rnn_cell_wrapper_impl, _RNNCellWrapperV2 with example: obj = DropoutWrapper()