7.27. SetScheduleNewWeights

set_schedule_new_weights ‐ Dynamic modification of the schedule weights

7.27.1. Attributes

NameTypeDefaults
indexINTEGERNone (required)
operatorSTRINGNone (required)

7.27.2. Description

This action is used to modify dynamically the weights of an interpolator. This action consists in a dynamic modification of the tabweights weight matrix. The target node is expected to contain an interpolator.

The child node defines a weights vector that will be used to modify the value of the current tabweights weight matrix (a row of the weight matrix). The string value of the operator attribute is an operator string. The values of the operator must be "=", "=", "+=", "-=", "*=", or "/=". The integer value of the index attribute defines the rank of the weight row in the weight matrix that is modified.

Interpolation can also operate on variables (scalars, tables, or matrices). The set_schedule_new_weights command concern the interpolation of variables if and only if the variable attribute is defined in the set_schedule_new_weights element. In this case, the string value of the variable attribute is the ID of the interpolated variable on the target node.

7.27.3. Expected children

The following element must occur in set_schedule_new_weights: one weight vector element.

7.27.4. Expected target

The target node must be an interpolator.

7.27.5. Example

The example below defines an action that replaces the second weight row of the interpolator by the weight vector representing the sixth element of the interpolator.

<set_schedule_new_weights index="2" operator="=">
  <weights dim="9"> 0 0 0 0 0 1 0 0 0 </weights>
</set_schedule_new_weights>