SetBalanceWeight
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Sets the weight of balanced distribution.
Prototype
1 | void SetBalanceWeight(const BalanceWeight &balanceWeight) = 0 |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
balanceWeight |
Input |
Weight of balanced distribution struct BalanceWeight { int32_t rowNum = 0; // Number of rows in the weight matrix int32_t colNum = 0; // Number of columns in the weight matrix const int32_t *matrix = nullptr; // Pointer to the weight matrix, which is an array with rowNum rows and colNum columns. If this pointer is null, all elements of the matrix are 1. }; |
Returns
None
Exception Handling
None
Constraints
None
Parent topic: Class BalanceConfig