Skip to content

Commit

Permalink
FIX Enable default image conversion to png for now (#200)
Browse files Browse the repository at this point in the history
* Enable default image converstion to png for now

* add dialog box to lecture
  • Loading branch information
mmcky authored Feb 6, 2022
1 parent d6642a2 commit 644d6c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lectures/back_prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ 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
#Image(fig.to_image(format="png"))
Image(fig.to_image(format="png"))
# fig.show() will provide interactive plot when running
# notebook locally
```
Expand Down Expand Up @@ -583,7 +583,7 @@ fig.add_trace(go.Scatter(x=grid, y=predictions_2, name='Two-layer neural network
fig.add_trace(go.Scatter(x=grid, y=predictions_3, name='Three-layer neural network'))
# Export to PNG file
#Image(fig.to_image(format="png"))
Image(fig.to_image(format="png"))
# fig.show() will provide interactive plot when running
# notebook locally
```
Expand All @@ -594,3 +594,9 @@ fig.add_trace(go.Scatter(x=grid, y=predictions_3, name='Three-layer neural netwo
from jax.lib import xla_bridge
print(xla_bridge.get_backend().platform)
```
```{note} Cloud Enivronment
This lecture site is built in a server environment that doesn't have access to a `gpu`
If you run this lecture locally this lets you know where your code is being executed, either
via the `cpu` or the `gpu`
```

2 comments on commit 644d6c8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.