tenserflow doesent work and restarts kernel

Viewed 28

i have tf 2.1 cuda 10.1 and cudnn 7.65 but when i try to run a tf.function it first prints this:

  start = pd.to_datetime(['2000-5-01']).astype(int)[0]//10**9 # convert to unix timestamp.
I:\share scripts\AItrain.py:19: FutureWarning: The behavior of .astype from datetime64[ns] to int32 is deprecated. In a future version, this astype will return exactly the specified dtype instead of int64, and will raise if that conversion overflows.
  end = pd.to_datetime(['2022-12-31']).astype(int)[0]//10**9 # convert to unix timestamp.
I:\share scripts\AItrain.py:32: FutureWarning: The behavior of `series[i:j]` with an integer-dtype index is deprecated. In a future version, this will be treated as *label-based* indexing, consistent with e.g. `series[i]` lookups. To retain the old behavior, use `series.iloc[i:j]`. To get the future behavior, use `series.loc[i:j]`.
  out.append(arr[i:i + size])

2022-09-24 11:31:29.216602: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-09-24 11:31:29.609594: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5956 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 2080 SUPER, pci bus id: 0000:09:00.0, compute capability: 7.5

2022-09-24 11:31:29.216602: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-09-24 11:31:29.609594: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5956 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 2080 SUPER, pci bus id: 0000:09:00.0, compute capability: 7.5
2022-09-24 11:31:30.611632: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8500

then the kernel restarts and it says this:

2022 11:57:27.444951: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance‑critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022 11:57:27.849044: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5956 MB memory: ‑> device: 0, name: NVIDIA GeForce RTX 2080 SUPER, pci bus id: 0000:09:00.0, compute capability: 7.5
2022 11:57:28.879046: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8500```
0 Answers
Related