• Creates an IOHandlerSync that passes saved model artifacts to a callback.

    function handleSave(artifacts) {
    // ... do something with the artifacts ...
    return {modelArtifactsInfo: {...}, ...};
    }

    const saveResult = model.save(tf.io.withSaveHandler(handleSave));

    Parameters

    Returns IOHandlerSync