def create_from_json_file(cls, json_file_path=None): """Relies on the existence of a JSON file. First, check json_config_path. If it's not None, If the file exists, use that. If the file does not exist, throw an error. Otherwise, check the filepath set by a SageMaker environment variable. If the file exists, use that. Otherwise, return None. """ return create_hook_from_json_config(cls, json_config_path=json_file_path)
def create_from_json_file(cls, json_file_path=None): """Relies on the existence of a JSON file. First, check json_config_path. If it's not None, If the file exists, use that. If the file does not exist, throw an error. Otherwise, check the filepath set by a SageMaker environment variable. If the file exists, use that. Otherwise, return None. """ default_values = dict( save_interval=DEFAULT_SAVE_CONFIG_INTERVAL, start_step=DEFAULT_SAVE_CONFIG_START_STEP, end_step=DEFAULT_SAVE_CONFIG_END_STEP, save_steps=DEFAULT_SAVE_CONFIG_SAVE_STEPS, ) return create_hook_from_json_config( cls, json_config_path=json_file_path, default_values=default_values )