Skip to content

Commit

Permalink
fix default for intermediate quadratic layers in ICNN (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocuturi authored Oct 9, 2024
1 parent 7309c76 commit 0219671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ott/neural/networks/icnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def _get_wx(self, dim: int, rank: int) -> nn.Module:
num_potentials=dim,
use_linear=True,
use_bias=True,
kernel_diag_init=nn.initializers.zeros,
kernel_diag_init=nn.initializers.constant(-2.0),
rectifier_fn=jax.nn.softplus,
kernel_lr_init=self.init_fn,
kernel_linear_init=self.init_fn,
bias_init=nn.initializers.zeros,
Expand Down

0 comments on commit 0219671

Please sign in to comment.