forked from emer/leabra
-
Notifications
You must be signed in to change notification settings - Fork 1
/
trn.go
29 lines (23 loc) · 819 Bytes
/
trn.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2020, The Emergent Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package deep
import (
"github.com/ccnlab/leabrax/leabra"
"github.com/emer/emergent/emer"
"github.com/goki/ki/kit"
)
// TRNLayer copies inhibition from pools in CT and TRC layers, and from other
// TRNLayers, and pools this inhibition using the Max operation
type TRNLayer struct {
leabra.Layer
ILayers emer.LayNames `desc:"layers that we receive inhibition from"`
}
var KiT_TRNLayer = kit.Types.AddType(&TRNLayer{}, leabra.LayerProps)
func (ly *TRNLayer) Defaults() {
ly.Layer.Defaults()
}
// InitActs fully initializes activation state -- only called automatically during InitWts
func (ly *TRNLayer) InitActs() {
ly.Layer.InitActs()
}