text_plain_output_1.png
import numpy as np

seed = 42
np.random.seed = seed

x_train = np.asarray(x_train, np.float32) / 255
x_test = np.asarray(x_test, np.float32) / 255
y_train = np.asarray(y_train)
y_test = np.asarray(y_test)

print('Train Images shape is   : ', x_train.shape)
print('Train  Labels  shape is : ', y_train.shape)