We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de152db commit 360fa5cCopy full SHA for 360fa5c
1 file changed
jax_toolkit/losses/utils.py
@@ -51,7 +51,7 @@ def get_haiku_loss_function(
51
def loss_function_wrapper(
52
params: hk.Params, x: jnp.ndarray, y_true: jnp.ndarray, rng: jnp.ndarray = None
53
) -> jnp.ndarray:
54
- # rng argument can be used is net_transform.apply() is non-deterministic, and you require and "random seed"
+ # rng argument can be used if net_transform.apply() is non-deterministic, and you require a "random seed"
55
y_pred: jnp.ndarray = net_transform.apply(params, rng, x)
56
loss_value: jnp.ndarray = loss_function(y_true, y_pred)
57
return loss_value
0 commit comments