mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-22 13:07:51 +08:00
Added 'i' to bilinear formula
This commit is contained in:
parent
e1c12343b6
commit
a951283561
@ -77,11 +77,12 @@ class Bilinear(Module):
|
|||||||
|
|
||||||
.. math::
|
.. math::
|
||||||
|
|
||||||
y = x_1^\top W x_2 + b
|
y_i = x_1^\top W_i x_2 + b_i
|
||||||
|
|
||||||
where
|
where
|
||||||
:math:`W` has shape ``[output_dims, input1_dims, input2_dims]``.
|
:math:`W` has shape ``[output_dims, input1_dims, input2_dims]``.
|
||||||
:math:`b` has shape ``[output_dims, ]``.
|
:math:`b` has shape ``[output_dims, ]``.
|
||||||
|
:math:`i` is the index for output dimensions.
|
||||||
|
|
||||||
The values are initialized from :math:`\mathcal{U}(-{k}, {k})`, where
|
The values are initialized from :math:`\mathcal{U}(-{k}, {k})`, where
|
||||||
:math:`k = \frac{1}{\sqrt{input1\_dims}}`.
|
:math:`k = \frac{1}{\sqrt{input1\_dims}}`.
|
||||||
|
Loading…
Reference in New Issue
Block a user