TensorFeatureDescriptor.IsRequired 属性

定义

如果为 true,则必须在调用 LearningModelSession.Evaluate 之前将值绑定到此功能。

public:
 property bool IsRequired { bool get(); };
bool IsRequired();
public bool IsRequired { get; }
var boolean = tensorFeatureDescriptor.isRequired;
Public ReadOnly Property IsRequired As Boolean

属性值

Boolean

bool

如果在调用 LearningModelSession.Evaluate 之前必须将值绑定到此功能,则为 True;否则为 false。

实现

注解

Windows Server

若要在 Windows Server 上使用此 API,必须使用带桌面体验的 Windows Server 2019。

线程安全

此 API 是线程安全的。

适用于