-
-
Notifications
You must be signed in to change notification settings - Fork 57
[FIX] Fix jax and os.fork warnings #557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
a793512
237102e
660bfa2
fea2da0
21416a9
35e53e5
8e8526f
37ad72c
3ee8924
17ff8a0
ab7560d
f62a965
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,17 @@ kernelspec: | |
| ```{include} _admonition/gpu.md | ||
| ``` | ||
|
|
||
| In addition to what's included in base Anaconda, we need to install the following packages | ||
|
|
||
| ```{code-cell} ipython3 | ||
| :tags: [hide-output] | ||
|
|
||
| !pip install -U kaleido plotly | ||
| !conda install -y -c plotly plotly-orca | ||
|
mmcky marked this conversation as resolved.
|
||
| ``` | ||
|
|
||
| We also need to install JAX to run this lecture | ||
|
|
||
| ```{code-cell} ipython3 | ||
| :tags: [skip-execution] | ||
|
|
||
|
|
@@ -28,15 +39,6 @@ import jax | |
| print(f"JAX backend: {jax.devices()[0].platform}") | ||
| ``` | ||
|
|
||
| In addition to what's included in base Anaconda, we need to install the following packages | ||
|
|
||
| ```{code-cell} ipython3 | ||
| :tags: [hide-output] | ||
|
|
||
| !pip install kaleido | ||
| !conda install -y -c plotly plotly plotly-orca retrying | ||
| ``` | ||
|
|
||
| ```{note} | ||
| If you are running this on Google Colab the above cell will | ||
| present an error. This is because Google Colab doesn't use Anaconda to manage | ||
|
|
@@ -521,7 +523,7 @@ predictions = vmap(compute_xδw_seq, in_axes=(None, 0))(params_ex1, grid)[0][:, | |
|
|
||
| ```{code-cell} ipython3 | ||
| fig = go.Figure() | ||
| fig.add_trace(go.Scatter(x=grid, y=f_val, name=r'$-3x+2$')) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @HumphreyYang the failure in back_prop in the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will run locally to check and confirm.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @mmcky, I removed them because of the error but it doesn't seem to be working : (
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @HumphreyYang I think the error was due to big changes in |
||
| fig.add_trace(go.Scatter(x=grid, y=f_val, name=r'-3x+2')) | ||
| fig.add_trace(go.Scatter(x=grid, y=predictions, name='Approximation')) | ||
|
|
||
| # Export to PNG file | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.