Megosztás a következőn keresztül:


ModelSaveContext Class

Definition

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).

Applies to