Skip to content

Instantly share code, notes, and snippets.

@obeshor
Last active July 4, 2019 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obeshor/f85e1864bc91b486391d0616a0d1fe1a to your computer and use it in GitHub Desktop.
Save obeshor/f85e1864bc91b486391d0616a0d1fe1a to your computer and use it in GitHub Desktop.
Importing librairies
# 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