mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:46:46 +08:00
Added 'i' to bilinear formula
This commit is contained in:
parent
e1c12343b6
commit
a951283561
@ -77,11 +77,12 @@ class Bilinear(Module):
|
||||
|
||||
.. math::
|
||||
|
||||
y = x_1^\top W x_2 + b
|
||||
y_i = x_1^\top W_i x_2 + b_i
|
||||
|
||||
where
|
||||
:math:`W` has shape ``[output_dims, input1_dims, input2_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
|
||||
:math:`k = \frac{1}{\sqrt{input1\_dims}}`.
|
||||
|
Loading…
Reference in New Issue
Block a user