Skip to content

Fix ChainHiddenLayerAccessor set* methods to be function templates

Choose a tag to compare

@danmcleran danmcleran released this 03 Apr 15:06
· 324 commits to master since this release

The four set* methods in ChainHiddenLayerAccessor<LayerChain<...>> were non-template static functions, but recursive calls invoked them with ::template set*(...), requiring them to be function templates.

The get* methods in the same struct already used template.
Apply the same pattern to setBiasNeuronWeightForConnection, setBiasNeuronDeltaWeightForConnection, setWeightForNeuronAndConnection, and setDeltaWeightForNeuronAndConnection.

Add unit tests to prevent regression.