LearningModelSessionOptions.CloseModelOnSessionCreation Property
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.
Specifies whether a LearningModelSession should close the associated learning model when it is created.
public:
property bool CloseModelOnSessionCreation { bool get(); void set(bool value); };
bool CloseModelOnSessionCreation();
void CloseModelOnSessionCreation(bool value);
public bool CloseModelOnSessionCreation { get; set; }
var boolean = learningModelSessionOptions.closeModelOnSessionCreation;
learningModelSessionOptions.closeModelOnSessionCreation = boolean;
Public Property CloseModelOnSessionCreation As Boolean
Property Value
Boolean
bool
Indicates whether the model should be closed upon session creation.
Windows requirements
Device family |
Windows 10, version 2004 (introduced in 10.0.19041.0)
|
API contract |
Windows.AI.MachineLearning.MachineLearningContract (introduced in v3.0)
|