BufferInfo Struct Reference

BufferInfo Struct Reference#

SDK qb Runtime Library: mobilint::BufferInfo Struct Reference
SDK qb Runtime Library v1.0
MCS001-

Struct representing input/output buffer information. More...

#include <type.h>

Public Member Functions

uint32_t original_size () const
 Returns the total size of the original input/output.
uint32_t reshaped_size () const
 Returns the total size of the reshaped input/output.
uint32_t size () const
 Returns the total size of the NPU input/output.

Public Attributes

uint32_t original_height = 0
uint32_t original_width = 0
uint32_t original_channel = 0
uint32_t reshaped_height = 0
uint32_t reshaped_width = 0
uint32_t reshaped_channel = 0
uint32_t height = 0
uint32_t width = 0
uint32_t channel = 0
uint32_t max_height = 0
uint32_t max_width = 0
uint32_t max_channel = 0
uint32_t max_cache_size = 0

Detailed Description

Struct representing input/output buffer information.

Definition at line 181 of file type.h.

Member Function Documentation

◆ original_size()

uint32_t mobilint::BufferInfo::original_size ( ) const
inline

Returns the total size of the original input/output.

Returns
The data size.

Definition at line 202 of file type.h.

◆ reshaped_size()

uint32_t mobilint::BufferInfo::reshaped_size ( ) const
inline

Returns the total size of the reshaped input/output.

Returns
The data size.

Definition at line 210 of file type.h.

◆ size()

uint32_t mobilint::BufferInfo::size ( ) const
inline

Returns the total size of the NPU input/output.

Returns
The data size.

Definition at line 218 of file type.h.

Member Data Documentation

◆ original_height

uint32_t mobilint::BufferInfo::original_height = 0

Height of original input/output

Definition at line 183 of file type.h.

◆ original_width

uint32_t mobilint::BufferInfo::original_width = 0

Width of original input/output

Definition at line 184 of file type.h.

◆ original_channel

uint32_t mobilint::BufferInfo::original_channel = 0

Channel of original input/output

Definition at line 185 of file type.h.

◆ reshaped_height

uint32_t mobilint::BufferInfo::reshaped_height = 0

Height of reshaped input/output

Definition at line 186 of file type.h.

◆ reshaped_width

uint32_t mobilint::BufferInfo::reshaped_width = 0

Width of reshaped input/output

Definition at line 187 of file type.h.

◆ reshaped_channel

uint32_t mobilint::BufferInfo::reshaped_channel = 0

Channel of reshaped input/output

Definition at line 188 of file type.h.

◆ height

uint32_t mobilint::BufferInfo::height = 0

Height of NPU input/output

Definition at line 189 of file type.h.

◆ width

uint32_t mobilint::BufferInfo::width = 0

Width of NPU input/output

Definition at line 190 of file type.h.

◆ channel

uint32_t mobilint::BufferInfo::channel = 0

Channel of NPU input/output

Definition at line 191 of file type.h.

◆ max_height

uint32_t mobilint::BufferInfo::max_height = 0

Maximum height of original input/output if data is sequential.

Definition at line 192 of file type.h.

◆ max_width

uint32_t mobilint::BufferInfo::max_width = 0

Maximum width of original input/output if data is sequential.

Definition at line 193 of file type.h.

◆ max_channel

uint32_t mobilint::BufferInfo::max_channel = 0

Maximum channel of original input/output if data is sequential.

Definition at line 194 of file type.h.

◆ max_cache_size

uint32_t mobilint::BufferInfo::max_cache_size = 0

Maximum KV-cache size, relevant for LLM models using KV cache.

Definition at line 195 of file type.h.


The documentation for this struct was generated from the following file: