# qtimlqnn

The qtimlqnn plugin shows the Qualcomm^®^ AI Engine direct SDK capabilities (load and execute the Qualcomm Neural Network models) as a GStreamer plugin.

This plugin does the following:

- Accepts a tensor prepared by the preprocessing elements such as qtimlvconverter.
- Produces output tensor that's parsed by the postprocessing plugin qtimlpostprocess.
- Uses the Qualcomm Neural Network (QNN) library.
- Uses the ION/DMA buffers allocated by the GstMLBufferPool custom buffer pool class through IOCTL commands to the kernel.

The model and backend usage is as follows:

- To use a model, provide the absolute path of the model through the model property.

    After it's loaded, the model file provides the input and output capabilities:

    - Number of tensors
    - Dimensions
    - Type
- To select a different backend, set the backend property with the absolute path of the backend library.

## Inheritance chain

[GObject](https://docs.gtk.org/gobject/) → [GstObject](https://gstreamer.freedesktop.org/documentation/gstreamer/gstobject.html?gi-language=c) → [GstElement](https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c) → [GstBaseTransform](https://gstreamer.freedesktop.org/documentation/base/gstbasetransform.html?gi-language=c)→ GstMLQNN

The following tables provide information on pad templates and element properties of qtimlqnn.

## Pad configuration

| Pad Name | Capabilities | Capabilities | Capabilities |
| --- | --- | --- | --- |
| SINK template: 'sink'<br><ul class="simple"><br><li><p><em>Availability:</em>  Always</p></li><br><li><p><em>Direction:</em>  sink</p></li><br></ul> | neural-network/tensors | type: | { (string)UINT8, (string)INT32, (string)FLOAT32 } |
| SRC template: 'src'<br><ul class="simple"><br><li><p><em>Availability:</em>  Always</p></li><br><li><p><em>Direction:</em>  source</p></li><br></ul> | neural-network/tensors | type: | { (string)UINT8, (string)INT32, (string)FLOAT32 } |

## Element configuration

Table : Element properties of qtimlqnn

| Property | Description |
| --- | --- |
| name | The name of the object.<br><ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>String. Default: "mlqnn0"</p></li><br></ul> |
| parent | The parent of the object.<br><ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>Object of type "GstObject"</p></li><br></ul> |
| qos | Handle the quality-of-service events.<br><ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>Boolean. Default: false</p></li><br></ul> |
| backend | the backend library path.<br><ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>String. Default: null</p></li><br></ul> |
| model | The model/cached binary file path.<br><ul class="simple"><br><li><p>flags: readable, writable</p></li><br><li><p>String. Default: null</p></li><br></ul> |

Last Published: May 14, 2026

[Previous Topic
qtimltflite](https://docs.qualcomm.com/bundle/publicresource/80-80022-50/topics/qtimltflite.md) [Next Topic
qtimlpostprocess](https://docs.qualcomm.com/bundle/publicresource/80-80022-50/topics/qtimlpostprocess.md)

Source: [https://docs.qualcomm.com/doc/80-80022-50/topic/qtimlqnn.html](https://docs.qualcomm.com/doc/80-80022-50/topic/qtimlqnn.html)