Sets the weights for the given target.
The target to set weights for.
The weights to set.
See Implementation
Sets the weights for the given target.