mirror of
https://github.com/dragen1860/TensorFlow-2.x-Tutorials.git
synced 2021-05-12 18:32:23 +03:00
update lesson28
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import os
|
||||
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
|
||||
|
||||
import tensorflow as tf
|
||||
from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics
|
||||
import datetime
|
||||
from matplotlib import pyplot as plt
|
||||
import io
|
||||
|
||||
assert tf.__version__.startswith('2.')
|
||||
|
||||
def preprocess(x, y):
|
||||
|
||||
x = tf.cast(x, dtype=tf.float32) / 255.
|
||||
|
||||
Reference in New Issue
Block a user