ModelSaveContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convenience context object for saving models to a repository, for implementors of ICanSaveModel.
public sealed class ModelSaveContext : IDisposable
type ModelSaveContext = class
interface IDisposable
Public NotInheritable Class ModelSaveContext
Implements IDisposable
- Inheritance
-
ModelSaveContext
- Implements
Remarks
This class reduces the amount of boiler plate code needed to implement ICanSaveModel. It can also be used when saving to a single stream, for implementors of Microsoft.ML.ICanSaveInBinaryFormat.
Methods
Dispose() |
When in repository mode, this disposes the Writer (but not the repository). |