code: def forward_gpu(self, inputs):
      self.retain_inputs((0, 1))
      x, beta = inputs
      beta = beta.reshape(_get_extended_shape(beta, x))
  
      # Eliminating intermediate variable `bx` somehow degrades the
      # precision.
      y = cuda.elementwise(
          "T x, T beta",
          "T y",
          """
              T bx = beta * x;
              y = x * sigmoid(bx);
              """,
          "swish_fwd",
          preamble=_preamble,
      )(x, beta)
      return (y,)
  
imports: import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling the Swish obj's underlying member method code with example usage: obj.forward_gpu(inputs) and returns: y