Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.04 KB

learningmodelsessionoptions.md

File metadata and controls

40 lines (29 loc) · 1.04 KB
-api-id -api-type ms.custom
T:Windows.AI.MachineLearning.LearningModelSessionOptions
winrt class
19H1

Windows.AI.MachineLearning.LearningModelSessionOptions

-description

Describes inference options that are used during the creation of LearningModelSession objects.

-remarks

The LearningModelSessionOptions object can be used to configure LearningModelSession construction.

Version history

Windows version SDK version Value added
2004 19041 CloseModelOnSessionCreation

-see-also

-examples

The following example creates a LearningModelSessionOptions object for use during session creation.

private LearningModelSessionOptions CreateSessionOptions()
{
    var options = new LearningModelSessionOptions();

    // Disable constant batch size optimizations
    options.BatchSizeOverride = 0;

    return options;
}