'How to get TensorFlow working on Windows?
I have been using tensor flow for a while now but I just recently ran into a problem with one of my programs. While trying to create a convolutional network I got the error
Epoch 1/4
Process finished with exit code -1073740791 (0xC0000409)
where I have never had this error before. I have all of the updated CUDA's and CUDD's and have them in the right folder so I don't know what the problem is. Anything helps thanks.
# The use of filters over data to determine a general pattern of data locally
# Program creates a filter as opposed to a model
import tensorflow as tf
import matplotlib.pyplot as plt
from keras import datasets, layers, models
print(tf.config.list_physical_devices())
# LOAD AND SPLIT DATASET
(train_images, train_labels), (test_images, test_labels) = datasets.cifar10.load_data()
# Normalize pixel values to be between 0 and 1
train_images, test_images = train_images / 255.0, test_images / 255.0
class_names = ['airplane', 'automobile', 'bird', 'cat', 'deer',
'dog', 'frog', 'horse', 'ship', 'truck']
model = models.Sequential()
model.add(layers.Conv2D(32, (3, 3), activation='relu', input_shape=(32, 32, 3)))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
model.add(layers.Flatten())
model.add(layers.Dense(64, activation='relu'))
model.add(layers.Dense(10))
model.compile(optimizer='adam',
loss="mean_squared_error",
metrics=['accuracy'])
model.fit(train_images, train_labels, epochs=4)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
