# 机器学习 API

ML API 允许针对 tensor-specific 的要求和机器学习属性进行配置。

- **[GstMLType](https://docs.qualcomm.com/doc/80-70014-50Y/topic/ml-api-gstmltype.html)**  

GstMLType 使你能够获取有关 GStreamer ML 数据类型的信息。
- **[GstMLInfo](https://docs.qualcomm.com/doc/80-70014-50Y/topic/ml-api-gstmlinfo.html)**  

GstMLInfo 表示描述机器学习属性的信息结构。此信息可以从 GstCaps 中用 gst\_ml\_info\_from\_caps（）填写。
- **[GstMLTensorMeta](https://docs.qualcomm.com/doc/80-70014-50Y/topic/ml-api-gstmltensormeta.html)**  

GstMLTensorMeta 为不同的张量类型定义元数据 API。
- **[GstMLFrame](https://docs.qualcomm.com/doc/80-70014-50Y/topic/ml-api-gstmlframe.html)**  

GstMLFrame 是从 gst\_ml\_frame\_map（）获取的一种方便的结构，包含指向张量的映射指针以及有关张量的所需信息。
- **[GstMLBufferPool](https://docs.qualcomm.com/doc/80-70014-50Y/topic/ml-api-gstmlbufferpool.html)**  

GstMLBufferPool 是 ML 张量缓冲区的特殊 GstBufferPool 子类。它允许您配置 tensor-specific 的要求，例如在单个 [GstBuffer](https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html?gi-language=c) 中的多个 [GstMemory](https://gstreamer.freedesktop.org/documentation/gstreamer/gstmemory.html?gi-language=c) 块。

**Parent Topic:** [基本实用程序 API](https://docs.qualcomm.com/doc/80-70014-50Y/topic/im-sdk-base-uitilities.html)

Last Published: Nov 11, 2025

[Previous Topic
GstGlesVideoConverter API](https://docs.qualcomm.com/bundle/publicresource/80-70014-50Y/topics/gstglesvideoconverter-apis.md) [Next Topic
GstMLType](https://docs.qualcomm.com/bundle/publicresource/80-70014-50Y/topics/ml-api-gstmltype.md)