如果报错:OOM when allocating tensor with shape
If you want to see a list of allocated tensors when OOM happens
tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape
errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape是因为:OOM内存溢出 修改代码中 卷积层的深度(核数目调小) 计算指标时传入的训练集数据与测试集数据都需要调小