-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Today, the only way to load a model is by using a Stream
:
machinelearning/src/Microsoft.ML.Data/Model/ModelOperationsCatalog.cs
Lines 36 to 41 in e2464f6
/// <summary> | |
/// Load the model from the stream. | |
/// </summary> | |
/// <param name="stream">A readable, seekable stream to load from.</param> | |
/// <returns>The loaded model.</returns> | |
public ITransformer Load(Stream stream) => TransformerChain.LoadFrom(_env, stream); |
We should add an overload that takes a string filePath
as a convenience API over top of this. That way all the callers don't need to open a FileStream
and dispose of it, etc, just to load a model.
sfilipi and CESARDELATORRE
Metadata
Metadata
Assignees
Labels
No labels