Skip to main content

Function: buildChannelActivations()

buildChannelActivations(activeChannels): NTCActivation[]

Flattens an (offset-assigned) active-channel layout - see layoutChannels

  • into a per-output-component activation array, e.g. for NTCTrainer's channelActivations option (see NTCGPUComputeTSL.js) and for NTCNodeMaterial's sliceChannels/applyChannelActivation at inference time - both index this the same way layoutChannels assigns offsets, so a component's activation always lands at the same flat index its value does.

Parameters​

activeChannels​

NTCChannel[]

Returns​

NTCActivation[]