Skip to content

Commit

Permalink
Fix Neural SDE example -- we changed how we check term compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Aug 8, 2024
1 parent d6d09dc commit c8e1506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/neural_sde.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
" )\n",
"\n",
" def __call__(self, t, y, args):\n",
" t = jnp.asarray(t)\n",
" return self.scale * self.mlp(jnp.concatenate([t[None], y]))\n",
"\n",
"\n",
Expand Down Expand Up @@ -168,6 +169,7 @@
" self.hidden_size = hidden_size\n",
"\n",
" def __call__(self, t, y, args):\n",
" t = jnp.asarray(t)\n",
" return self.scale * self.mlp(jnp.concatenate([t[None], y])).reshape(\n",
" self.hidden_size, self.control_size\n",
" )"
Expand Down

0 comments on commit c8e1506

Please sign in to comment.