def load_graph(filepath, custom_objects=None): if custom_objects is None: custom_objects = {} with tf.keras.utils.custom_object_scope(custom_objects): return Graph.from_config(io_utils.load_json(filepath))
def load_pipeline(filepath, custom_objects=None): """Load a Pipeline instance from disk.""" if custom_objects is None: custom_objects = {} with tf.keras.utils.custom_object_scope(custom_objects): return Pipeline.from_config(io_utils.load_json(filepath))