Skip to content

Commit 360fa5c

Browse files
committed
Fix comment
1 parent de152db commit 360fa5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jax_toolkit/losses/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_haiku_loss_function(
5151
def loss_function_wrapper(
5252
params: hk.Params, x: jnp.ndarray, y_true: jnp.ndarray, rng: jnp.ndarray = None
5353
) -> jnp.ndarray:
54-
# rng argument can be used is net_transform.apply() is non-deterministic, and you require and "random seed"
54+
# rng argument can be used if net_transform.apply() is non-deterministic, and you require a "random seed"
5555
y_pred: jnp.ndarray = net_transform.apply(params, rng, x)
5656
loss_value: jnp.ndarray = loss_function(y_true, y_pred)
5757
return loss_value

0 commit comments

Comments
 (0)