class_docstr: Zoneout regularization.
class_docstr_tok: ["Zoneout","regularization","."]
code: def forward(self, inputs):
      self.retain_inputs(())
  
      h, x = inputs
      xp = backend.get_array_module(*x)
      if xp is numpy:
          flag_x = xp.random.rand(*x.shape) >= self.zoneout_ratio
      else:
          flag_x = xp.random.rand(*x.shape) >= self.zoneout_ratio
      self.flag_h = xp.ones_like(flag_x) ^ flag_x
      self.flag_x = flag_x
      return (h * self.flag_h + x * self.flag_x,)
  
file_path: chainer/chainer/functions/noise/zoneout.py
imports: import numpy
  from chainer import backend
  from chainer import configuration
  from chainer import function_node
  from chainer.utils import argument
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling the Zoneout obj's underlying member method code with example usage: obj.forward(inputs) and returns: unknown