where :math:`X` is the input Tensor, :math:`W` and :math:`b` are weight and bias respectively.
The linear op multiplies input tensor with weight matrix and
produces an output Tensor of shape [N, *, output_dim],
where N is batch size and `*` means any number of additional dimensions and output_dim is the last dim of ``weight``.
If ``bias`` is not None, a bias will be added to the output.
Args:
x(Tensor): Input tensor, its data type is float16, float32 or float64
weight(Tensor): Weight tensor, its data type is float16, float32 or float64
bias(Tensor|None, optional): Bias tensor, its data type is float16, float32 or float64. If it is set to None, no bias will be added to the output units.
name(str|None, optional): For detailed information, please refer to :ref:`api_guide_Name`. Default: None.