語言

IComponentFactory<TComponent> 介面

定義

一個建立元件的介面,無需額外參數(除了 IHostEnvironment)。

public interface IComponentFactory<out TComponent> : Microsoft.ML.Runtime.IComponentFactory
type IComponentFactory<'Component> = interface
    interface IComponentFactory
Public Interface IComponentFactory(Of Out TComponent)
Implements IComponentFactory

類型參數

TComponent
這是共變數的型別參數。 也就是說,您可以使用您指定的類型,或衍生程度較高的任何類型。 如需共變數與反變數的詳細資訊,請參閱泛型中的共變數與反變數。
衍生
實作

方法

名稱 Description
CreateComponent(IHostEnvironment)

一個建立元件的介面,無需額外參數(除了 IHostEnvironment)。

適用於