GetBlockSize

Function Usage

Obtains the size (in bytes) of a data block on the current NPU platform.

Prototype

int64_t GetBlockSize()

Parameters

None

Returns

int64_t.

Constraints

None

Example

1
2
3
4
// Obtain the size of a data block on the current NPU platform.
void func() {
    int64_t size = GetCurrentPlatformInfo().GetBlockSize();
}