Skip to content

Commit

Permalink
major update to context handling: mostly now self-contained within ne…
Browse files Browse the repository at this point in the history
…twork, which maintains the single canonical value; fixed init of spkbin and improved logic: passing TestInitWeights now.
  • Loading branch information
rcoreilly committed Nov 3, 2024
1 parent 1b59abb commit 0345a91
Show file tree
Hide file tree
Showing 26 changed files with 1,063 additions and 1,112 deletions.
7 changes: 7 additions & 0 deletions axon/act.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions axon/act.goal
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,9 @@ func (ac *ActParams) DecayState(ctx *Context, ni, di uint32, decay, glong, ahp f
Neurons[ISIAvg, ni, di] = -1
Neurons[ActInt, ni, di] = ac.Init.Act
Neurons[Spiked, ni, di] = 0
for i := range 8 {
Neurons[SpkBin0+NeuronVars(i), ni, di] = 0.0
}

if decay > 0 { // no-op for most, but not all..
Neurons[Spike, ni, di] = 0
Expand Down Expand Up @@ -1033,6 +1036,10 @@ func (ac *ActParams) InitActs(ctx *Context, ni, di uint32) {
Neurons[CtxtGeRaw, ni, di] = 0
Neurons[CtxtGeOrig, ni, di] = 0

for i := range 8 {
Neurons[SpkBin0+NeuronVars(i), ni, di] = 0.0
}

ac.InitLongActs(ctx, ni, di)
}

Expand Down
Loading

0 comments on commit 0345a91

Please sign in to comment.