mirror of
https://github.com/dragen1860/TensorFlow-2.x-Tutorials.git
synced 2021-05-12 18:32:23 +03:00
2b2bb4f10efb64058195e49e492181705c12e735
TensorFlow 2.0 Tutorials
Timeline:
- Jan. 11, 2019: TensorFlow r2.0 preview
- Aug. 14, 2018: TensorFlow 2.0 is coming
TensorFlow 1.0 is out-of-date!
We have TensorFlow 2.0 finally.
Let's get started!
Installation
- CPU install
pip install tf-nightly-2.0-preview
- GPU install
pip install tf-nightly-gpu-2.0-preview
Test installation:
In [2]: import tensorflow as tf
In [3]: tf.__version__
Out[3]: '2.0.0-dev20190129'
In [4]: tf.test.is_gpu_available()
...
totalMemory: 3.95GiB freeMemory: 3.00GiB
...
Out[4]: True
Outline
Lesson1
Simple classification example to show you how to train, load/save checkpoint, evaluate with new TF 2.0.
Lesson 14
4 ways to achieve simple MNIST classifcation with TF 2.0.
- keras compile & fit
- forward and backward with keras standard layers.Dense
- forward and backward with keras subclassing custom layer
- forward and backward with tf.matmul
Lesson 15
train CIFAR10 dataset with VGG16 network.
Refered Repo.
Our work is not built from scratch. Great appreciatoin to these open works!
Description
Languages
Jupyter Notebook
93.3%
Python
6.7%
