set_core_mask
- RunOption.set_core_mask(core_mask: int)
Set the core_mask option.
This function is only supported on Houmo M50 products.
The core_mask uses binary format where bit i represents core i: core0=0x1, core1=0x2, core2=0x4, core3=0x8. For example, core0+core1 = 0x3. Value 0 means no mask.
- Parameters:
core_mask (int) -- The mask of the kernels that can be used for model inference. Must be non-negative.
- Raises:
ValueError -- If core_mask is negative.