Skip to content

Commit 644d6c8

Browse files
authored
FIX Enable default image conversion to png for now (#200)
* Enable default image converstion to png for now * add dialog box to lecture
1 parent d6642a2 commit 644d6c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lectures/back_prop.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ fig.add_trace(go.Scatter(x=grid, y=f_val, name=r'$-3x+2$'))
503503
fig.add_trace(go.Scatter(x=grid, y=predictions, name='Approximation'))
504504
505505
# Export to PNG file
506-
#Image(fig.to_image(format="png"))
506+
Image(fig.to_image(format="png"))
507507
# fig.show() will provide interactive plot when running
508508
# notebook locally
509509
```
@@ -583,7 +583,7 @@ fig.add_trace(go.Scatter(x=grid, y=predictions_2, name='Two-layer neural network
583583
fig.add_trace(go.Scatter(x=grid, y=predictions_3, name='Three-layer neural network'))
584584
585585
# Export to PNG file
586-
#Image(fig.to_image(format="png"))
586+
Image(fig.to_image(format="png"))
587587
# fig.show() will provide interactive plot when running
588588
# notebook locally
589589
```
@@ -594,3 +594,9 @@ fig.add_trace(go.Scatter(x=grid, y=predictions_3, name='Three-layer neural netwo
594594
from jax.lib import xla_bridge
595595
print(xla_bridge.get_backend().platform)
596596
```
597+
598+
```{note} Cloud Enivronment
599+
This lecture site is built in a server environment that doesn't have access to a `gpu`
600+
If you run this lecture locally this lets you know where your code is being executed, either
601+
via the `cpu` or the `gpu`
602+
```

0 commit comments

Comments
 (0)