keras 使用tensorflow-gpu启动内核时发生错误

goqiplq2  于 2022-12-29  发布在  其他
关注(0)|答案(1)|浏览(196)

当我开始训练数据时,这个错误发生了。然后我什么也做不了。
启动内核时出错

2022󈚯󈚼 11:23:16.546865: 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:23:16.860791: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 21670 MB memory: ‑> device: 0, name: NVIDIA GeForce RTX 3090, pci bus id: 0000:01:00.0, compute capability: 8.6
    2022󈚯󈚼 11:23:16.873446: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled
    2022󈚯󈚼 11:23:18.625116: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8302

我已经尝试更新Python,蜘蛛,蜘蛛内核,Ipython....但这个错误仍然存在。

t3psigkw

t3psigkw1#

这些只是信息和警告消息,因为它们的前缀分别为I(表示信息)和W(表示警告),否则,如果这是错误消息,它们的前缀将为E
您可以在代码开头使用以下代码来禁止这些(信息性)I消息。

import os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"

请看这个类似的问题。

相关问题