Last active
July 4, 2019 18:53
-
-
Save obeshor/f85e1864bc91b486391d0616a0d1fe1a to your computer and use it in GitHub Desktop.
Importing librairies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install nightly package for some functionalities that aren't in alpha | |
!pip install tensorflow-gpu==2.0.0-beta1 | |
# Install TF Hub for TF2 | |
!pip install 'tensorflow-hub == 0.5' | |
from __future__ import absolute_import, division, print_function, unicode_literals | |
import tensorflow as tf | |
import tensorflow_hub as hub | |
from tensorflow.keras.layers import Dense, Flatten, Conv2D | |
from tensorflow.keras import Model | |
from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
from tensorflow.keras.optimizers import Adam | |
from tensorflow.keras import layers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment