Error tf

Error tf

Failed precondition: Python interpreter state is not initialized. The process may be terminated.

C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\Scripts\python.exe C:/Users/Aleksandr/PycharmProjects/pythonProject5/main.py

2021-01-21 18:56:51.016783: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll

2021-01-21 18:56:52.376157: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set

2021-01-21 18:56:52.376952: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library nvcuda.dll

2021-01-21 18:56:52.408778: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties: 

pciBusID: 0000:2d:00.0 name: GeForce RTX 3070 computeCapability: 8.6

coreClock: 1.755GHz coreCount: 46 deviceMemorySize: 8.00GiB deviceMemoryBandwidth: 417.29GiB/s

2021-01-21 18:56:52.408927: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll

2021-01-21 18:56:52.420840: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll

2021-01-21 18:56:52.420935: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll

2021-01-21 18:56:52.424232: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cufft64_10.dll

2021-01-21 18:56:52.425290: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library curand64_10.dll

[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

2021-01-21 18:56:52.431599: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusolver64_10.dll

2021-01-21 18:56:52.433796: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll

2021-01-21 18:56:52.434263: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll

2021-01-21 18:56:52.434408: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0

Found 63008 images belonging to 2 classes.

2021-01-21 18:56:54.229824: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2

To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

2021-01-21 18:56:54.230534: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties: 

pciBusID: 0000:2d:00.0 name: GeForce RTX 3070 computeCapability: 8.6

coreClock: 1.755GHz coreCount: 46 deviceMemorySize: 8.00GiB deviceMemoryBandwidth: 417.29GiB/s

2021-01-21 18:56:54.230676: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll

2021-01-21 18:56:54.230750: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll

2021-01-21 18:56:54.230820: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll

2021-01-21 18:56:54.230889: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cufft64_10.dll

2021-01-21 18:56:54.230959: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library curand64_10.dll

2021-01-21 18:56:54.231035: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusolver64_10.dll

2021-01-21 18:56:54.231120: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll

2021-01-21 18:56:54.231189: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll

2021-01-21 18:56:54.231283: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0

2021-01-21 18:56:54.705342: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:

2021-01-21 18:56:54.705426: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267]   0 

2021-01-21 18:56:54.705468: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0:  N 

2021-01-21 18:56:54.705706: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6177 MB memory) -> physical GPU (device: 0, name: GeForce RTX 3070, pci bus id: 0000:2d:00.0, compute capability: 8.6)

2021-01-21 18:56:54.706197: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set

2021-01-21 18:56:55.069415: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)

Epoch 1/30

2021-01-21 18:56:55.424547: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll

2021-01-21 18:56:56.037505: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll

2021-01-21 18:56:56.099342: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll

2021-01-21 18:56:56.747228: E tensorflow/stream_executor/cuda/cuda_dnn.cc:336] Could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED

2021-01-21 18:56:56.747314: E tensorflow/stream_executor/cuda/cuda_dnn.cc:340] Error retrieving driver version: Unimplemented: kernel reported driver version not implemented on Windows

2021-01-21 18:56:56.748530: E tensorflow/stream_executor/cuda/cuda_dnn.cc:336] Could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED

2021-01-21 18:56:56.748602: E tensorflow/stream_executor/cuda/cuda_dnn.cc:340] Error retrieving driver version: Unimplemented: kernel reported driver version not implemented on Windows

2021-01-21 18:56:56.748703: W tensorflow/core/framework/op_kernel.cc:1763] OP_REQUIRES failed at conv_ops_fused_impl.h:697 : Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.

Traceback (most recent call last):

 File "C:/Users/Aleksandr/PycharmProjects/pythonProject5/main.py", line 51, in <module>

  model.fit(train_generator, epochs=30)

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1100, in fit

  tmp_logs = self.train_function(iterator)

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\eager\def_function.py", line 828, in __call__

  result = self._call(*args, **kwds)

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\eager\def_function.py", line 888, in _call

  return self._stateless_fn(*args, **kwds)

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\eager\function.py", line 2943, in __call__

  filtered_flat_args, captured_inputs=graph_function.captured_inputs) # pylint: disable=protected-access

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\eager\function.py", line 1919, in _call_flat

  ctx, args, cancellation_manager=cancellation_manager))

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\eager\function.py", line 560, in call

  ctx=ctx)

 File "C:\Users\Aleksandr\PycharmProjects\pythonProject5\venv\lib\site-packages\tensorflow\python\eager\execute.py", line 60, in quick_execute

  inputs, attrs, num_outputs)

tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.

[[node sequential/activation/Relu (defined at /Users/Aleksandr/PycharmProjects/pythonProject5/main.py:51) ]] [Op:__inference_train_function_1044]


Function call stack:

train_function


2021-01-21 18:56:56.801962: W tensorflow/core/kernels/data/generator_dataset_op.cc:107] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated.

[[{{node PyFunc}}]]


Process finished with exit code 1

Report Page