在Google Colab上使用TF2.0自回归模型对图像进行采样时内存不足

时间:2019-06-09 17:11:04

标签: python-3.x numpy tensorflow keras deep-learning

采样功能如下:


function trigger_receive_sms($from) {
  header ('Content-Type:text/xml');
  echo ('<?xml version="1.0" encoding="UTF-8"?>');
  echo ('<Response>');
  echo ('<Message>Thank you for accepting this position.');
  echo ('</Message>');
  echo ('</Response>');
  die();
}

当我运行此代码以在Google Colab上对图像进行采样时,RAM最终变为OOM,此后内核关闭。在Colab上运行时如何避免OOM?

0 个答案:

没有答案