Skip to content

Commit

Permalink
refactor working in axon now -- moving to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Aug 11, 2024
1 parent d439ab1 commit 0798241
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions emer/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ type LayerBase struct {

// Index is a 0..n-1 index of the position of the layer within
// the list of layers in the network.
Index int `display:"-" inactive:"-"`
Index int `display:"-" edit:"-"`

// SampleIndexes are the current set of "sample" unit indexes,
// which are a smaller subset of units that represent the behavior
Expand All @@ -211,7 +211,7 @@ type LayerBase struct {
// If none have been set, then all units are used.
// See utility function CenterPoolIndexes that returns indexes of
// units in the central pools of a 4D layer.
SampleIndexes []int
SampleIndexes []int `table:"-"`

// SampleShape is the shape to use for the subset of sample
// unit indexes, in terms of an array of dimensions.
Expand All @@ -220,7 +220,7 @@ type LayerBase struct {
// otherwise a 1D array of len SampleIndexes will be used.
// See utility function CenterPoolShape that returns shape of
// units in the central pools of a 4D layer.
SampleShape tensor.Shape
SampleShape tensor.Shape `table:"-"`
}

// InitLayer initializes the layer, setting the EmerLayer interface
Expand Down Expand Up @@ -370,7 +370,7 @@ func (ly *LayerBase) NumPools() int {
// Returns error on invalid var name.
func (ly *LayerBase) UnitValues(vals *[]float32, varNm string, di int) error {
nn := ly.NumUnits()
slicesx.SetLength(*vals, nn)
*vals = slicesx.SetLength(*vals, nn)
vidx, err := ly.EmerLayer.UnitVarIndex(varNm)
if err != nil {
nan := math32.NaN()
Expand Down
2 changes: 1 addition & 1 deletion emer/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ type NetworkBase struct {
// methods for functions defined in the NetworkBase type.
// Must set this with a pointer to the actual instance
// when created, using InitNetwork function.
EmerNetwork Network
EmerNetwork Network `display:"-"`

// overall name of network, which helps discriminate if there are multiple.
Name string
Expand Down
Loading

0 comments on commit 0798241

Please sign in to comment.