class_docstr: Bilinear layer that performs tensor multiplication.
  
  Bilinear is a primitive link that wraps the
  :func:`~chainer.functions.bilinear` functions. It holds parameters ``W``,
  ``V1``, ``V2``, and ``b`` corresponding to the arguments of
  :func:`~chainer.functions.bilinear`.
  
  Args:
      left_size (int): Dimension of input vector :math:`e^1` (:math:`J`)
      right_size (int): Dimension of input vector :math:`e^2` (:math:`K`)
      out_size (int): Dimension of output vector :math:`y` (:math:`L`)
      nobias (bool): If ``True``, parameters ``V1``, ``V2``, and ``b`` are
          omitted.
      initialW (:ref:`initializer <initializer>`): Initializer to
          initialize the weight. When it is :class:`numpy.ndarray`,
          its ``ndim`` should be 3.
      initial_bias (tuple of :ref:`initializer <initializer>`):
          Initial values of :math:`V^1`, :math:`V^2` and
          :math:`b`. The length of this argument must be 3.
          Each element of this tuple must have the shapes of
          ``(left_size, out_size)``, ``(right_size, out_size)``, and
          ``(out_size,)``, respectively if they are :class:`numpy.ndarray`.
          If ``None``, :math:`V^1` and :math:`V^2` are initialized
          by the default initializer and :math:`b` is set to :math:`0`.
  
  .. seealso:: See :func:`chainer.functions.bilinear` for details.
  
  Attributes:
      W (~chainer.Variable): Bilinear weight parameter.
      V1 (~chainer.Variable): Linear weight parameter for the first argument.
      V2 (~chainer.Variable): Linear weight parameter for the second
          argument.
      b (~chainer.Variable): Bias parameter.
class_docstr_tok: ["Bilinear","layer","that","performs","tensor","multiplication",".","Bilinear","is","a","primitive","link","that","wraps","the",":","func",":","`","~chainer.functions.bilinear","`","functions",".","It","holds","parameters","``","W","``",",","``","V1","``",",","``","V2","``",",","and","``","b","``","corresponding","to","the","arguments","of",":","func",":","`","~chainer.functions.bilinear","`",".","Args",":","left_size","(","int",")",":","Dimension","of","input","vector",":","math",":","`","e^1","`","(",":","math",":","`","J","`",")","right_size","(","int",")",":","Dimension","of","input","vector",":","math",":","`","e^2","`","(",":","math",":","`","K","`",")","out_size","(","int",")",":","Dimension","of","output","vector",":","math",":","`","y","`","(",":","math",":","`","L","`",")","nobias","(","bool",")",":","If","``","True","``",",","parameters","``","V1","``",",","``","V2","``",",","and","``","b","``","are","omitted",".","initialW","(",":","ref",":","`","initializer","<","initializer",">","`",")",":","Initializer","to","initialize","the","weight",".","When","it","is",":","class",":","`","numpy.ndarray","`",",","its","``","ndim","``","should","be","3.","initial_bias","(","tuple","of",":","ref",":","`","initializer","<","initializer",">","`",")",":","Initial","values","of",":","math",":","`","V^1","`",",",":","math",":","`","V^2","`","and",":","math",":","`","b","`",".","The","length","of","this","argument","must","be","3",".","Each","element","of","this","tuple","must","have","the","shapes","of","``","(","left_size",",","out_size",")","``",",","``","(","right_size",",","out_size",")","``",",","and","``","(","out_size",",",")","``",",","respectively","if","they","are",":","class",":","`","numpy.ndarray","`",".","If","``","None","``",",",":","math",":","`","V^1","`","and",":","math",":","`","V^2","`","are","initialized","by","the","default","initializer","and",":","math",":","`","b","`","is","set","to",":","math",":","`","0","`",".","..","seealso",":",":","See",":","func",":","`","chainer.functions.bilinear","`","for","details",".","Attributes",":","W","(","~chainer.Variable",")",":","Bilinear","weight","parameter",".","V1","(","~chainer.Variable",")",":","Linear","weight","parameter","for","the","first","argument",".","V2","(","~chainer.Variable",")",":","Linear","weight","parameter","for","the","second","argument",".","b","(","~chainer.Variable",")",":","Bias","parameter","."]
code: def zero_grads(self):
      # Left for backward compatibility
      self.zerograds()
  
file_path: chainer/chainer/links/connection/bilinear.py
imports: import numpy
  from chainer.backends import cuda
  from chainer.functions.connection import bilinear
  from chainer import initializers
  from chainer import link
  from chainer import variable
label_desc: Use image node_id 3 for calling the Bilinear obj's underlying member method code with example usage: obj.zero_grads() without return types