コード例 #1
0
def _must_record_gradient():
  return not pywrap_tfe.TFE_Py_TapeSetIsEmpty()
コード例 #2
0
ファイル: tape.py プロジェクト: MFChunga/poo
def could_possibly_record():
    """Returns True if any tape is active."""
    return not pywrap_tfe.TFE_Py_TapeSetIsEmpty()