元编程参考文档

深度学习运行时

5 个节点

本页内容 5

描述运行时

函数

Which libtorch this distribution carries and what it can see, in one line.

签名
描述运行时() -> 文本
string DescribeRuntime()

返回

描述文本
所属发行版
元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
深度学习运行时
所属包
机器学习

GPU 是否可用

函数

Whether models can run on an NVIDIA GPU here: the machine has one and a driver, and the distribution carries the CUDA build of libtorch.

签名
GPU 是否可用() -> 真否
bool IsGpuAvailable()

返回

可用真否
所属发行版
元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
深度学习运行时
所属包
机器学习

已加载的模型

函数

The models this program holds in memory now, one line each.

签名
已加载的模型() -> 文本数组
string[] LoadedModels()

返回

模型文本数组
所属发行版
元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
深度学习运行时
所属包
机器学习

卸载所有模型

函数

Frees every model this program has loaded.

签名
卸载所有模型() -> 整数
int UnloadAllModels()

返回

数量整数
所属发行版
元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
深度学习运行时
所属包
机器学习

卸载模型

函数

Frees the memory a model holds. The next Load of it reads it again; nodes still holding it refuse to use it.

签名
卸载模型(模型: Loaded Model)
void UnloadModel(LoadedModel model)

参数

名称类型默认值说明
模型Loaded Model—The model to unload.
所属发行版
元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
深度学习运行时
所属包
机器学习