Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 619147712
  • Loading branch information
learned_optimization authors committed Mar 26, 2024
1 parent 4bcaeb0 commit 16e4727
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks/summary_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
"source": [
"Then we can transform the `loss` function with the function transformation: `summary.with_summary_output_reduced`.\n",
"This transformation goes through the computation and extracts all the tagged values and returns them to us by name in a dictionary.\n",
"In implementation, all the hard work here is done by the wonderful `oryx` library (in particular [harvest](https://github.com/tensorflow/probability/blob/main/spinoffs/oryx/oryx/core/interpreters/harvest.py)).\n",
"In implementation, all the hard work here is done by the wonderful `oryx` library (in particular [harvest](https://github.com/jax-ml/oryx/tree/main/oryx/core/interpreters/harvest.py)).\n",
"When we wrap a function this, we return a tuple containing the original result, and a dictionary with the desired metrics."
]
},
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/summary_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def loss(parameters):

Then we can transform the `loss` function with the function transformation: `summary.with_summary_output_reduced`.
This transformation goes through the computation and extracts all the tagged values and returns them to us by name in a dictionary.
In implementation, all the hard work here is done by the wonderful `oryx` library (in particular [harvest](https://github.com/tensorflow/probability/blob/main/spinoffs/oryx/oryx/core/interpreters/harvest.py)).
In implementation, all the hard work here is done by the wonderful `oryx` library (in particular [harvest](https://github.com/jax-ml/oryx/tree/main/oryx/core/interpreters/harvest.py)).
When we wrap a function this, we return a tuple containing the original result, and a dictionary with the desired metrics.

```{code-cell}
Expand Down
3 changes: 2 additions & 1 deletion docs/notebooks/summary_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# kernelspec:
# display_name: Python 3
# name: python3
# pylint: disable=line-too-long
# ---

# + [markdown] id="ryqPvTKI19zH"
Expand Down Expand Up @@ -99,7 +100,7 @@ def loss(parameters):
# + [markdown] id="AL9_xgfR4yPS"
# Then we can transform the `loss` function with the function transformation: `summary.with_summary_output_reduced`.
# This transformation goes through the computation and extracts all the tagged values and returns them to us by name in a dictionary.
# In implementation, all the hard work here is done by the wonderful `oryx` library (in particular [harvest](https://github.com/tensorflow/probability/blob/main/spinoffs/oryx/oryx/core/interpreters/harvest.py)).
# In implementation, all the hard work here is done by the wonderful `oryx` library (in particular [harvest](https://github.com/jax-ml/oryx/tree/main/oryx/core/interpreters/harvest.py)).
# When we wrap a function this, we return a tuple containing the original result, and a dictionary with the desired metrics.

# + colab={"base_uri": "https://localhost:8080/"} id="hZQkB6Um8PI5" outputId="984e4f64-7562-48ae-ca68-ff4014037553"
Expand Down

0 comments on commit 16e4727

Please sign in to comment.