lmoroney / dlaicourse

Notebooks for learning deep learning
5.66k stars 5.37k forks source link

TF2 #72

Closed MarkDaoust closed 4 years ago

MarkDaoust commented 4 years ago

Colab is switching to TF2 as default.

These changes ensure notebooks continue to work smoothly.

Human readable diff

It's hard to review large notebook changes.

Here is a human-readable diff created by converting both branches to markdown:

find . -type f -name "*.ipynb" -exec jupyter nbconvert --to markdown {} \;
find . -type f -not -path '*/\.*' -name "*.md" -exec sed -i "s/\`\`\`python/\`\`\`/g" {} \;
find . -type f -name "*.ipynb" -exec rm {} \;

And then pulling the changes onto the master side with:

find . -type f -not -path '*/\.*' -name "*.md" -exec git checkout from_branch -- {} \;

Changes

Manual fixes:

Fixed broken visualization in Course 1 - Part 8 - Lesson 4 - Notebook.ipynb [5a106085fad6aff34be3e03ae79f44c7296f9ca2]

Replace:

nbfmt.py

Ran: https://github.com/tensorflow/docs/blob/master/tools/nbfmt.py on all notebooks.