Skip to content

Commit c91ca12

Browse files
committed
update lesson28
1 parent 3a40a59 commit c91ca12

File tree

1 file changed

+5
-0
lines changed
  • 深度学习与TensorFlow入门实战-源码和PPT/lesson28-可视化

1 file changed

+5
-0
lines changed

深度学习与TensorFlow入门实战-源码和PPT/lesson28-可视化/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
import os
2+
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
3+
14
import tensorflow as tf
25
from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics
36
import datetime
47
from matplotlib import pyplot as plt
58
import io
69

10+
assert tf.__version__.startswith('2.')
11+
712
def preprocess(x, y):
813

914
x = tf.cast(x, dtype=tf.float32) / 255.

0 commit comments

Comments
 (0)