You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/notebooks/summary_tutorial.ipynb
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -997,9 +997,9 @@
997
997
"id": "jNt9CNJf2HJN"
998
998
},
999
999
"source": [
1000
-
"### jax.experimental.host_callback\n",
1000
+
"### jax external callbacks\n",
1001
1001
"\n",
1002
-
"Jax has some support to send data back from an accelerator back to the host while a ja program is running. This is exposed in jax.experimental.host_callback.\n",
1002
+
"Jax has some support to send data back from an accelerator back to the host while a ja program is running. This is exposed in https://jax.readthedocs.io/en/latest/notebooks/external_callbacks.html.\n",
1003
1003
"\n",
1004
1004
"One can use this to print which is a quick way to get data out of a network."
1005
1005
]
@@ -1025,13 +1025,12 @@
1025
1025
}
1026
1026
],
1027
1027
"source": [
1028
-
"from jax.experimental import host_callback as hcb\n",
Copy file name to clipboardExpand all lines: docs/notebooks/summary_tutorial.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -461,9 +461,9 @@ print(to_look_at)
461
461
462
462
+++ {"id": "jNt9CNJf2HJN"}
463
463
464
-
### jax.experimental.host_callback
464
+
### jax external callbacks
465
465
466
-
Jax has some support to send data back from an accelerator back to the host while a ja program is running. This is exposed in jax.experimental.host_callback.
466
+
Jax has some support to send data back from an accelerator back to the host while a ja program is running. This is exposed in https://jax.readthedocs.io/en/latest/notebooks/external_callbacks.html.
467
467
468
468
One can use this to print which is a quick way to get data out of a network.
Copy file name to clipboardExpand all lines: docs/notebooks/summary_tutorial.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -348,20 +348,21 @@ def loss(parameters):
348
348
print(to_look_at)
349
349
350
350
# + [markdown] id="jNt9CNJf2HJN"
351
-
# ### jax.experimental.host_callback
351
+
# ### jax external callbacks
352
352
#
353
-
# Jax has some support to send data back from an accelerator back to the host while a ja program is running. This is exposed in jax.experimental.host_callback.
353
+
# Jax has some support to send data back from an accelerator back to the host
354
+
# while a jax program is running. This is exposed in
0 commit comments