Skip to content

Commit

Permalink
axon finally into building just axon dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Oct 8, 2024
1 parent 1753f82 commit 7b19d38
Show file tree
Hide file tree
Showing 12 changed files with 629 additions and 625 deletions.
452 changes: 226 additions & 226 deletions axon/act.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion axon/act_path.go

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

3 changes: 2 additions & 1 deletion axon/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"cogentcore.org/core/base/mpi"
"cogentcore.org/core/core"
"github.com/emer/emergent/v2/ecmd"
)

////////////////////////////////////////////////////
Expand Down Expand Up @@ -51,6 +50,7 @@ func SaveWeights(net *Network, ctrString, runName string) string {
return fnm
}

/*
// SaveWeightsIfArgSet saves network weights if the "wts" arg has been set to true.
// uses WeightsFilename information to identify the weights.
// only for 0 rank MPI if running mpi
Expand All @@ -61,6 +61,7 @@ func SaveWeightsIfArgSet(net *Network, args *ecmd.Args, ctrString, runName strin
}
return ""
}
*/

// SaveWeightsIfConfigSet saves network weights if the given config
// bool value has been set to true.
Expand Down
4 changes: 2 additions & 2 deletions axon/hip_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package axon
import (
"cogentcore.org/core/base/errors"
"cogentcore.org/core/math32/vecint"
"cogentcore.org/core/tensor/stats/norm"
"cogentcore.org/core/tensor/stats/stats"
"github.com/emer/emergent/v2/emer"
"github.com/emer/emergent/v2/etime"
"github.com/emer/emergent/v2/looper"
Expand Down Expand Up @@ -258,7 +258,7 @@ func (net *Network) ConfigLoopsHip(ctx *Context, man *looper.Manager, hip *HipCo
for di := uint32(0); di < ctx.NetIndexes.NData; di++ {
clampSrc.UnitValues(&tmpValues, "Act", int(di))
if hip.EC5ClampThr > 0 {
norm.Binarize32(tmpValues, hip.EC5ClampThr, 1, 0)
stats.Binarize32(tmpValues, tensor.NewFloat64Scalar(hip.EC5ClampThr))
}
ec5.ApplyExt1D32(ctx, di, tmpValues)
}
Expand Down
Loading

0 comments on commit 7b19d38

Please sign in to comment.