自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 【报错解决】RuntimeError: tf.placeholder() is not compatible with eager execution.

运行tensorflow2.4好好的突然再跑给我报这个错误, RuntimeError: tf.placeholder() is not compatible with eager execution. emmmmmmm,然后我百度有人说 tf.compat.v1.disable_eager_execution() 在代码前面添加这行代码,于是我就加了。 然后又出现了错误(想骂人)忘了报错代码了,但大概就是说我用的conv里的filter不对 然后我就奇怪,就去看了一眼tensorflow

2022-03-23 20:14:09 2657

原创 【tensorflow 报错解决】not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED

今天运行一个代码,前两天跑的好好的,突然就报下面的错误 E T:\src\github\tensorflow\tensorflow\stream_executor\cuda\cuda_dnn.cc:332] could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED E T:\src\github\tensorflow\tensorflow\stream_executor\cuda\cuda_dnn.cc:332] could not create

2022-02-26 19:41:24 1024

原创 报错解决:ResourceExhaustedError: OOM when allocating tensor with shape[1,36864,36864]

运行代码报错:Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocatio [Op:__inference_predict_function_5604] 百度看到有人说显存不够,减小batchsize,然后我减小到1还是不行,最后发现是我文件开头加的三行代码(见下图)的问题,..

2022-01-13 17:23:06 1247 1

原创 成功解决:发生异常: ModuleNotFoundErrorNo module named ‘keras.utils.training_utils‘

实验环境: tensorflow2.0,keras2.3.1,python3.6 使用“fromkeras.utils.training_utilsimportmulti_gpu_model”语句发生错误,百度了好多解决该问题的资源很少,后来把training_utils去掉就可以正常运行了。 即把上个语句改为“fromkeras.utilsimportmulti_gpu_model”,导入正常。 ...

2021-09-23 16:52:47 2792

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除