(0) Resource exhausted: OOM when allocating tensor with shape[16,12,512,512] and type bool on
训练模型时出现上述问题。原因:显卡内存爆了,出现OOM问题解决办法:1.允许gpu自增长1.1针对tf1.X在代码的import语句下,添加config=tf.ConfigProto()config.gpu_options.allow_growth=Truesess=tf.Session(config=config)1.2针对tf2.X在代码的import语句下,添加configuration=t