LearningModelSessionOptions.CloseModelOnSessionCreation 屬性

定義

指定 LearningModelSession 是否應該在建立時關閉相關聯的學習模型。

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

屬性值

Boolean

bool

指出模型是否應在會話建立時關閉。

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.AI.MachineLearning.MachineLearningContract (已於 v3.0 引進)

適用於

另請參閱