2021-08-20 22:25:59.661554: F .\tensorflow/core/kernels/conv_2d_gpu.h:1019] Non-OK-status: GpuLaunch

2021-08-20 22:25:59.661554: F .\tensorflow/core/kernels/conv_2d_gpu.h:1019] Non-OK-status: GpuLaunchKernel( SwapDimension1And2InTensor3UsingTiles, total_tiles_count, kNumThreads, 0, d.stream(), input, input_dims, output) status: Internal: unspecified launch failure
[I 22:26:12.251 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
WARNING:root:kernel 0445d5ac-8eee-4199-84e8-97bf9ece2aa9 restarted

在jupyter notebook中,使用GPU训练深度学习模型,当安装的tensorflow版本与cuda的版本不对应时,但不想重新安装,可以设置cpu训练:

导入:os.environ["CUDA_VISIBLE_DEVICES"] = "-1",即可

你可能感兴趣的:(TensorFlow,深度学习,机器学习,深度学习,人工智能,神经网络,tensorflow)