System Info
- OS: Windows 10,
- cudnn: 8.0,
- CUDA toolkit: 11.1 installed overtop of 10.2,
- GPU: Nvidia RTX 3070,
- CPU: Intel I7 10700f,
- Tensorflow:
tf.__version__==2.4.0rc-0(have also tried withtf-nightly-gpuas late as Dec 7, 2020) - CUDA, cudnn compiled manually from source
Test Code
The below code successfully compiles a model but crashes when model.fit(...) is called.
from tensorflow.keras import datasets, layers, models
import matplotlib.pyplot as plt
(train_images, train_labels), (test_images, test_labels) = datasets.cifar10.load_data()
train_images, test_images = train_images / 255.0, test_images / 255.0
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=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True))
history = model.fit(train_images, train_labels, batch_size=10, epochs=100)
By removing the convolutional and maxpooling layers and just flattening the tensors after input the model is able to train fine (obviously the output of this model is useless but it is still able to train).
The error code when program crashes is >Process finished with exit code -1073740791 (0xC0000409)
Additionally tensorflow is able to open library, find the GPU, and logs GPU as available when tf.config.list_physical_devices('GPU') is called
UPDATE I opened an issue on the tensorflow github page which you can find here