LINC-BIT's picture
Upload 1912 files
b84549f verified
raw
history blame contribute delete
396 Bytes
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
class Recoverable:
def load_checkpoint(self):
pass
def save_checkpoint(self):
pass
def get_checkpoint_path(self):
ckp_path = os.getenv('NNI_CHECKPOINT_DIRECTORY')
if ckp_path is not None and os.path.isdir(ckp_path):
return ckp_path
return None