Share via


IHost 接口

定义

主机与组件耦合,并提供随机数生成和并发指南。 请注意,应仅从组件的主线程访问随机数生成(如主机环境方法)。

public interface IHost : Microsoft.ML.Runtime.IHostEnvironment
type IHost = interface
    interface IHostEnvironment
    interface IChannelProvider
    interface IExceptionContext
    interface IProgressChannelProvider
Public Interface IHost
Implements IHostEnvironment
实现

属性

ComponentCatalog

此主机中提供的可加载组件目录 (Microsoft.ML.LoadableClassAttribute) 。

(继承自 IHostEnvironment)
ContextDescription

描述上下文本身的字符串。

(继承自 IExceptionContext)
Rand

颁发给此组件的随机数生成器。 请注意,随机数生成器不是线程安全的。

方法

Process<TException>(TException)

主机与组件耦合,并提供随机数生成和并发指南。 请注意,应仅从组件的主线程访问随机数生成(如主机环境方法)。

(继承自 IExceptionContext)
Register(String, Nullable<Int32>, Nullable<Boolean>)

创建具有给定注册名称的主机。

(继承自 IHostEnvironment)
Start(String)

启动标准消息通道。

(继承自 IChannelProvider)
StartPipe<TMessage>(String)

启动泛型信息管道。

(继承自 IChannelProvider)
StartProgressChannel(String)

Create a progress channel for a computation named name.

(继承自 IProgressChannelProvider)

适用于