Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/MachineLearnedBehaviorWriter
Description
The neural network storage will be implicitly resized (if needed) to provide storage for the new data.
| Name | setNeuralNetworkLayerWeights |
| Type | function |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/layers/MachineLearnedBehaviorWriter.h |
| Include Path | #include "dna/layers/MachineLearnedBehaviorWriter.h" |
void setNeuralNetworkLayerWeights
(
std::uint16_t netIndex,
std::uint16_t layerIndex,
const float * weights,
std::uint32_t count
)
Parameters
| Name | Remarks |
|---|---|
| netIndex | A neural network's position in the zero-indexed array of neural networks. |
| layerIndex | A layer's position in the zero-indexed array of neural network layers. |
| weights | The source address from which the weight matrix values are to be copied. |
| count | The number of weight matrix values to copy. |