clamp_tile

void ckernel::clamp_tile_init()

Please refer to documentation for any_init.

void ckernel::clamp_tile(uint32_t idst, uint32_t param0, uint32_t param1)

Performs element-wise clamp operation for float. The DST register buffer must be in acquired state via acquire_dst call. This call is blocking and is only available on the compute engine.

Return value: None

Argument

Description

Type

Valid Range

Required

idst

The index of the tile in DST register buffer to perform the computation on

uint32_t

Must be less than the size of the DST register buffer

True

param0

The min value for the clamp function

uint32_t

True

param1

The max value for the clamp function

uint32_t

True