Documentation ¶
Index ¶
- type Activation
- func (n *Activation) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Activation) ClassName() string
- func (n *Activation) Configure(inObj InputObject)
- func (n *Activation) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Activation) Init(self base.Object, args base.Args)
- func (n *Activation) String() string
- type Affine
- type BatchNorm
- func (n *BatchNorm) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *BatchNorm) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *BatchNorm) ClassName() string
- func (n *BatchNorm) Configure(inObj InputObject)
- func (n *BatchNorm) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *BatchNorm) GetParams() []Param
- func (n *BatchNorm) Init(self base.Object, args base.Args)
- func (n *BatchNorm) InitParams(dim0 int)
- func (n *BatchNorm) ReadParams(r ParamReader)
- func (n *BatchNorm) WriteParams(w ParamWriter)
- type Bias
- func (n *Bias) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Bias) ClassName() string
- func (n *Bias) Configure(inObj InputObject)
- func (n *Bias) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Bias) Init(self base.Object, args base.Args)
- func (n *Bias) String() string
- type BranchNode
- func (n *BranchNode) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *BranchNode) ClassName() string
- func (n *BranchNode) Configure(inObj InputObject)
- func (n *BranchNode) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *BranchNode) Init(self base.Object, args base.Args)
- func (n *BranchNode) SetDeltas(deltaBuffers *DeltasTree)
- type Broadcast
- func (n *Broadcast) AllocateDeltas(globalDeltas *DeltasTree)
- func (n *Broadcast) Configure(inObj InputObject)
- func (n *Broadcast) GetTerminal() []Layer
- func (n *Broadcast) Init(self base.Object, layers []LayerItem, args base.Args)
- func (n *Broadcast) NestDeltas() bool
- func (n *Broadcast) SetDeltas(deltaBuffers *DeltasTree)
- type CompoundLayer
- func (n *CompoundLayer) AddPostfilterLayers()
- func (n *CompoundLayer) Append(layer Layer)
- func (n *CompoundLayer) Atom() Layer
- func (n *CompoundLayer) Init(args base.Args)
- func (n *CompoundLayer) InitBaseName()
- func (n *CompoundLayer) Layers() []Layer
- func (n *CompoundLayer) List() []Layer
- func (n *CompoundLayer) ToCompoundLayer() *CompoundLayer
- type Conv
- type Convolution
- func (n *Convolution) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Convolution) ClassName() string
- func (n *Convolution) Configure(inObj InputObject)
- func (n *Convolution) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Convolution) Init(self base.Object, args base.Args)
- func (n *Convolution) String() string
- type Cost
- type DataTransform
- func (n *DataTransform) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *DataTransform) ClassName() string
- func (n *DataTransform) Configure(inObj InputObject)
- func (n *DataTransform) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *DataTransform) Init(self base.Object, args base.Args)
- func (n *DataTransform) String() string
- type Deconv
- type Deconvolution
- func (n *Deconvolution) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Deconvolution) ClassName() string
- func (n *Deconvolution) Configure(inObj InputObject)
- func (n *Deconvolution) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Deconvolution) Init(self base.Object, args base.Args)
- func (n *Deconvolution) String() string
- type DeltasTree
- type Dropout
- func (n *Dropout) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *Dropout) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Dropout) ClassName() string
- func (n *Dropout) Configure(inObj InputObject)
- func (n *Dropout) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Dropout) Init(self base.Object, args base.Args)
- func (n *Dropout) String() string
- type GeneralizedCost
- func (n *GeneralizedCost) ClassName() string
- func (n *GeneralizedCost) CostFunc() transforms.Cost
- func (n *GeneralizedCost) Deltas() []backends.Tensor
- func (n *GeneralizedCost) GetCost(inputs []backends.Tensor, targets []backends.Tensor) backends.Value
- func (n *GeneralizedCost) GetErrors(inputs []backends.Tensor, targets []backends.Tensor) []backends.Tensor
- func (n *GeneralizedCost) Init(self base.Object, args base.Args)
- func (n *GeneralizedCost) Initialize(inObj Layer)
- func (n *GeneralizedCost) Outputs() []backends.Tensor
- type GeneralizedCostMask
- func (n *GeneralizedCostMask) ClassName() string
- func (n *GeneralizedCostMask) GetCost(inputs []backends.Tensor, targets []backends.Tensor) backends.Value
- func (n *GeneralizedCostMask) GetErrors(inputs []backends.Tensor, targets []backends.Tensor) []backends.Tensor
- func (n *GeneralizedCostMask) Init(self base.Object, args base.Args)
- type InputObject
- type LRN
- func (n *LRN) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *LRN) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *LRN) ClassName() string
- func (n *LRN) Configure(inObj InputObject)
- func (n *LRN) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *LRN) Init(self base.Object, args base.Args)
- type Layer
- type LayerBase
- func (n *LayerBase) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *LayerBase) AllocateDeltas(globalDeltas *DeltasTree)
- func (n *LayerBase) Atom() Layer
- func (n *LayerBase) BatchSum() backends.Tensor
- func (n *LayerBase) Configure(inObj InputObject)
- func (n *LayerBase) Deltas() []backends.Tensor
- func (n *LayerBase) GetParams() []Param
- func (n *LayerBase) GetTerminal() []Layer
- func (n *LayerBase) HasParams() bool
- func (n *LayerBase) InShape() []int
- func (n *LayerBase) Init(self base.Object, args base.Args)
- func (n *LayerBase) List() []Layer
- func (n *LayerBase) MultiOutShape() [][]int
- func (n *LayerBase) NestDeltas() bool
- func (n *LayerBase) NestedStr(level int) string
- func (n *LayerBase) OutShape() []int
- func (n *LayerBase) Outputs() []backends.Tensor
- func (n *LayerBase) OwnsOutput() bool
- func (n *LayerBase) PrevLayer() Layer
- func (n *LayerBase) ReadParams(r ParamReader)
- func (n *LayerBase) SetDeltas(deltaBuffers *DeltasTree)
- func (n *LayerBase) SetNext(layer Layer)
- func (n *LayerBase) String() string
- func (n *LayerBase) ToLayer() Layer
- func (n *LayerBase) WriteParams(w ParamWriter)
- type LayerContainer
- func (n *LayerContainer) Init(self base.Object, args base.Args)
- func (n *LayerContainer) Layers() []Layer
- func (n *LayerContainer) LayersToOptimize() []Layer
- func (n *LayerContainer) NestedStr(level int) string
- func (n *LayerContainer) ReadParams(r ParamReader)
- func (n *LayerContainer) SetDeltas(deltaBuffers *DeltasTree)
- func (n *LayerContainer) ToLayerContainer() *LayerContainer
- func (n *LayerContainer) WriteParams(w ParamWriter)
- type LayerContainerTrait
- type LayerItem
- type Linear
- func (n *Linear) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Linear) ClassName() string
- func (n *Linear) Configure(inObj InputObject)
- func (n *Linear) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Linear) Init(self base.Object, args base.Args)
- func (n *Linear) String() string
- type Merge
- type MergeBroadcast
- func (n *MergeBroadcast) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *MergeBroadcast) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *MergeBroadcast) ClassName() string
- func (n *MergeBroadcast) Configure(inObj InputObject)
- func (n *MergeBroadcast) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *MergeBroadcast) Init(self base.Object, layers []LayerItem, args base.Args)
- type MergeMultiStream
- func (n *MergeMultiStream) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *MergeMultiStream) ClassName() string
- func (n *MergeMultiStream) Configure(inObj InputObject)
- func (n *MergeMultiStream) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *MergeMultiStream) Init(self base.Object, layers []LayerItem, args base.Args)
- func (n *MergeMultiStream) NestDeltas() bool
- func (n *MergeMultiStream) SetDeltas(deltaBuffers *DeltasTree)
- type MergeSum
- func (n *MergeSum) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *MergeSum) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *MergeSum) ClassName() string
- func (n *MergeSum) Configure(inObj InputObject)
- func (n *MergeSum) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *MergeSum) Init(self base.Object, layers []LayerItem, args base.Args)
- type Multicost
- func (n *Multicost) ClassName() string
- func (n *Multicost) CostFunc() transforms.Cost
- func (n *Multicost) Deltas() []backends.Tensor
- func (n *Multicost) GetCost(inputs []backends.Tensor, targets []backends.Tensor) backends.Value
- func (n *Multicost) GetErrors(inputs []backends.Tensor, targets []backends.Tensor) []backends.Tensor
- func (n *Multicost) Init(self base.Object, costs []Cost, args base.Args)
- func (n *Multicost) Initialize(inObj Layer)
- func (n *Multicost) Outputs() []backends.Tensor
- type Param
- type ParamReader
- type ParamWriter
- type ParameterLayer
- func (n *ParameterLayer) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *ParameterLayer) BatchSum() backends.Tensor
- func (n *ParameterLayer) GetParams() []Param
- func (n *ParameterLayer) Init(self base.Object, args base.Args)
- func (n *ParameterLayer) InitParams(shape []int)
- func (n *ParameterLayer) ReadParams(r ParamReader)
- func (n *ParameterLayer) WriteParams(w ParamWriter)
- type Pooling
- func (n *Pooling) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Pooling) ClassName() string
- func (n *Pooling) Configure(inObj InputObject)
- func (n *Pooling) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Pooling) Init(self base.Object, args base.Args)
- func (n *Pooling) SetDeltas(deltaBuffers *DeltasTree)
- type Reshape
- func (n *Reshape) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Reshape) ClassName() string
- func (n *Reshape) Configure(inObj InputObject)
- func (n *Reshape) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Reshape) Init(self base.Object, args base.Args)
- func (n *Reshape) String() string
- type Sequential
- func (n *Sequential) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *Sequential) AllocateDeltas(globalDeltas *DeltasTree)
- func (n *Sequential) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Sequential) ClassName() string
- func (n *Sequential) Configure(inObj InputObject)
- func (n *Sequential) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Sequential) GetTerminal() []Layer
- func (n *Sequential) Init(self base.Object, layers []LayerItem, args base.Args)
- func (n *Sequential) ToSequential() *Sequential
- type SequentialTrait
- type SingleOutputTree
- type SkipNode
- func (n *SkipNode) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *SkipNode) ClassName() string
- func (n *SkipNode) Configure(inObj InputObject)
- func (n *SkipNode) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *SkipNode) Init(self base.Object, args base.Args)
- type States
- type Tree
- func (n *Tree) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
- func (n *Tree) AllocateDeltas(globalDeltas *DeltasTree)
- func (n *Tree) Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
- func (n *Tree) ClassName() string
- func (n *Tree) Configure(inObj InputObject)
- func (n *Tree) Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor
- func (n *Tree) GetTerminal() []Layer
- func (n *Tree) Init(self base.Object, layers []LayerItem, args base.Args)
- func (n *Tree) MultiOutShape() [][]int
- func (n *Tree) NestedStr(level int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activation ¶
type Activation struct { LayerBase // contains filtered or unexported fields }
func NewActivation ¶
func NewActivation(args ...interface{}) *Activation
func (*Activation) ClassName ¶
func (n *Activation) ClassName() string
func (*Activation) Configure ¶
func (n *Activation) Configure(inObj InputObject)
func (*Activation) String ¶
func (n *Activation) String() string
type Affine ¶
type Affine struct {
CompoundLayer
}
type BatchNorm ¶
type BatchNorm struct { LayerBase // contains filtered or unexported fields }
func NewBatchNorm ¶
func NewBatchNorm(args ...interface{}) *BatchNorm
func (*BatchNorm) Bprop ¶
SKIPPED: @Layer.accumulates decorator in original code
This is 'accumulates' wrapper that manages accParam objects for layers that use them - required for GAN networks only, not relevant at this stage
func (*BatchNorm) Configure ¶
func (n *BatchNorm) Configure(inObj InputObject)
func (*BatchNorm) InitParams ¶
func (*BatchNorm) ReadParams ¶
func (n *BatchNorm) ReadParams(r ParamReader)
func (*BatchNorm) WriteParams ¶
func (n *BatchNorm) WriteParams(w ParamWriter)
type Bias ¶
type Bias struct { ParameterLayer // contains filtered or unexported fields }
func (*Bias) Configure ¶
func (n *Bias) Configure(inObj InputObject)
type BranchNode ¶
type BranchNode struct {
LayerBase
}
func NewBranchNode ¶
func NewBranchNode(args ...interface{}) *BranchNode
func (*BranchNode) ClassName ¶
func (n *BranchNode) ClassName() string
func (*BranchNode) Configure ¶
func (n *BranchNode) Configure(inObj InputObject)
func (*BranchNode) SetDeltas ¶
func (n *BranchNode) SetDeltas(deltaBuffers *DeltasTree)
type Broadcast ¶
type Broadcast struct {
LayerContainer
}
func (*Broadcast) AllocateDeltas ¶
func (n *Broadcast) AllocateDeltas(globalDeltas *DeltasTree)
func (*Broadcast) Configure ¶
func (n *Broadcast) Configure(inObj InputObject)
func (*Broadcast) GetTerminal ¶
func (*Broadcast) NestDeltas ¶
func (*Broadcast) SetDeltas ¶
func (n *Broadcast) SetDeltas(deltaBuffers *DeltasTree)
type CompoundLayer ¶
type CompoundLayer struct {
// contains filtered or unexported fields
}
func (*CompoundLayer) AddPostfilterLayers ¶
func (n *CompoundLayer) AddPostfilterLayers()
func (*CompoundLayer) Append ¶
func (n *CompoundLayer) Append(layer Layer)
func (*CompoundLayer) Atom ¶
func (n *CompoundLayer) Atom() Layer
func (*CompoundLayer) Init ¶
func (n *CompoundLayer) Init(args base.Args)
func (*CompoundLayer) InitBaseName ¶
func (n *CompoundLayer) InitBaseName()
func (*CompoundLayer) Layers ¶
func (n *CompoundLayer) Layers() []Layer
func (*CompoundLayer) List ¶
func (n *CompoundLayer) List() []Layer
func (*CompoundLayer) ToCompoundLayer ¶
func (n *CompoundLayer) ToCompoundLayer() *CompoundLayer
type Conv ¶
type Conv struct {
CompoundLayer
}
type Convolution ¶
type Convolution struct { ParameterLayer // contains filtered or unexported fields }
func NewConvolution ¶
func NewConvolution(args ...interface{}) *Convolution
func (*Convolution) Bprop ¶
func (n *Convolution) Bprop( errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor
SKIPPED: @Layer.accumulates decorator in original code
This is 'accumulates' wrapper that manages accParam objects for layers that use them - required for GAN networks only, not relevant at this stage
func (*Convolution) ClassName ¶
func (n *Convolution) ClassName() string
func (*Convolution) Configure ¶
func (n *Convolution) Configure(inObj InputObject)
func (*Convolution) String ¶
func (n *Convolution) String() string
type DataTransform ¶
type DataTransform struct { LayerBase // contains filtered or unexported fields }
func NewDataTransform ¶
func NewDataTransform(args ...interface{}) *DataTransform
func (*DataTransform) ClassName ¶
func (n *DataTransform) ClassName() string
func (*DataTransform) Configure ¶
func (n *DataTransform) Configure(inObj InputObject)
func (*DataTransform) String ¶
func (n *DataTransform) String() string
type Deconv ¶
type Deconv struct {
CompoundLayer
}
type Deconvolution ¶
type Deconvolution struct { ParameterLayer // contains filtered or unexported fields }
func NewDeconvolution ¶
func NewDeconvolution(args ...interface{}) *Deconvolution
func (*Deconvolution) ClassName ¶
func (n *Deconvolution) ClassName() string
func (*Deconvolution) Configure ¶
func (n *Deconvolution) Configure(inObj InputObject)
func (*Deconvolution) String ¶
func (n *Deconvolution) String() string
type DeltasTree ¶
func NewDeltasTree ¶
func NewDeltasTree(parent *DeltasTree) *DeltasTree
func (*DeltasTree) AllocateBuffers ¶
func (t *DeltasTree) AllocateBuffers()
func (*DeltasTree) Ascend ¶
func (t *DeltasTree) Ascend() *DeltasTree
func (*DeltasTree) Descend ¶
func (t *DeltasTree) Descend() *DeltasTree
func (*DeltasTree) Init ¶
func (t *DeltasTree) Init(parent *DeltasTree)
func (*DeltasTree) ProcLayer ¶
func (t *DeltasTree) ProcLayer(layer Layer)
func (*DeltasTree) ReverseBuffers ¶
func (t *DeltasTree) ReverseBuffers()
type Dropout ¶
type Dropout struct { LayerBase // contains filtered or unexported fields }
func NewDropout ¶
func NewDropout(args ...interface{}) *Dropout
func (*Dropout) Configure ¶
func (n *Dropout) Configure(inObj InputObject)
type GeneralizedCost ¶
type GeneralizedCost struct { base.ObjectBase // contains filtered or unexported fields }
func NewGeneralizedCost ¶
func NewGeneralizedCost(args ...interface{}) *GeneralizedCost
func (*GeneralizedCost) ClassName ¶
func (n *GeneralizedCost) ClassName() string
func (*GeneralizedCost) CostFunc ¶
func (n *GeneralizedCost) CostFunc() transforms.Cost
func (*GeneralizedCost) Deltas ¶
func (n *GeneralizedCost) Deltas() []backends.Tensor
func (*GeneralizedCost) Initialize ¶
func (n *GeneralizedCost) Initialize(inObj Layer)
func (*GeneralizedCost) Outputs ¶
func (n *GeneralizedCost) Outputs() []backends.Tensor
type GeneralizedCostMask ¶
type GeneralizedCostMask struct { GeneralizedCost // contains filtered or unexported fields }
func NewGeneralizedCostMask ¶
func NewGeneralizedCostMask(args ...interface{}) *GeneralizedCostMask
func (*GeneralizedCostMask) ClassName ¶
func (n *GeneralizedCostMask) ClassName() string
type InputObject ¶
type InputObject struct {
// contains filtered or unexported fields
}
func MakeInputObject ¶
func MakeInputObject(obj interface{}) InputObject
func (InputObject) AssertSingle ¶
func (o InputObject) AssertSingle()
func (InputObject) IsNil ¶
func (o InputObject) IsNil() bool
func (InputObject) Layer ¶
func (o InputObject) Layer() Layer
func (InputObject) MultiShape ¶
func (o InputObject) MultiShape() [][]int
func (InputObject) Shape ¶
func (o InputObject) Shape() []int
type LRN ¶
type LRN struct { LayerBase // contains filtered or unexported fields }
func (*LRN) Configure ¶
func (n *LRN) Configure(inObj InputObject)
type Layer ¶
type Layer interface { base.Object Outputs() []backends.Tensor HasParams() bool OwnsOutput() bool Deltas() []backends.Tensor PrevLayer() Layer InShape() []int OutShape() []int MultiOutShape() [][]int String() string NestedStr(level int) string Configure(inObj InputObject) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool) AllocateDeltas(globalDeltas *DeltasTree) SetDeltas(deltaBuffers *DeltasTree) SetNext(layer Layer) GetParams() []Param Fprop(inputs []backends.Tensor, inference bool, beta float64) []backends.Tensor Bprop(errors []backends.Tensor, alpha float64, beta float64) []backends.Tensor GetTerminal() []Layer NestDeltas() bool BatchSum() backends.Tensor ReadParams(r ParamReader) WriteParams(w ParamWriter) }
type LayerBase ¶
type LayerBase struct { base.ObjectBase // contains filtered or unexported fields }
func (*LayerBase) AllocateDeltas ¶
func (n *LayerBase) AllocateDeltas(globalDeltas *DeltasTree)
func (*LayerBase) Configure ¶
func (n *LayerBase) Configure(inObj InputObject)
func (*LayerBase) GetTerminal ¶
func (*LayerBase) MultiOutShape ¶
func (*LayerBase) NestDeltas ¶
func (*LayerBase) OwnsOutput ¶
func (*LayerBase) ReadParams ¶
func (n *LayerBase) ReadParams(r ParamReader)
func (*LayerBase) SetDeltas ¶
func (n *LayerBase) SetDeltas(deltaBuffers *DeltasTree)
func (*LayerBase) WriteParams ¶
func (n *LayerBase) WriteParams(w ParamWriter)
type LayerContainer ¶
type LayerContainer struct { LayerBase // contains filtered or unexported fields }
func (*LayerContainer) Layers ¶
func (n *LayerContainer) Layers() []Layer
func (*LayerContainer) LayersToOptimize ¶
func (n *LayerContainer) LayersToOptimize() []Layer
func (*LayerContainer) NestedStr ¶
func (n *LayerContainer) NestedStr(level int) string
func (*LayerContainer) ReadParams ¶
func (n *LayerContainer) ReadParams(r ParamReader)
func (*LayerContainer) SetDeltas ¶
func (n *LayerContainer) SetDeltas(deltaBuffers *DeltasTree)
func (*LayerContainer) ToLayerContainer ¶
func (n *LayerContainer) ToLayerContainer() *LayerContainer
func (*LayerContainer) WriteParams ¶
func (n *LayerContainer) WriteParams(w ParamWriter)
type LayerContainerTrait ¶
type LayerContainerTrait interface { Layer Layers() []Layer LayersToOptimize() []Layer ToLayerContainer() *LayerContainer }
type Linear ¶
type Linear struct { ParameterLayer // contains filtered or unexported fields }
func (*Linear) Bprop ¶
SKIPPED: @Layer.accumulates decorator in original code
This is 'accumulates' wrapper that manages accParam objects for layers that use them - required for GAN networks only, not relevant at this stage
func (*Linear) Configure ¶
func (n *Linear) Configure(inObj InputObject)
type MergeBroadcast ¶
type MergeBroadcast struct { Broadcast // contains filtered or unexported fields }
func NewMergeBroadcast ¶
func NewMergeBroadcast(layers []LayerItem, args ...interface{}) *MergeBroadcast
func (*MergeBroadcast) Allocate ¶
func (n *MergeBroadcast) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
func (*MergeBroadcast) ClassName ¶
func (n *MergeBroadcast) ClassName() string
func (*MergeBroadcast) Configure ¶
func (n *MergeBroadcast) Configure(inObj InputObject)
type MergeMultiStream ¶
type MergeMultiStream struct {
MergeBroadcast
}
func NewMergeMultiStream ¶
func NewMergeMultiStream(layers []LayerItem, args ...interface{}) *MergeMultiStream
func (*MergeMultiStream) ClassName ¶
func (n *MergeMultiStream) ClassName() string
func (*MergeMultiStream) Configure ¶
func (n *MergeMultiStream) Configure(inObj InputObject)
func (*MergeMultiStream) NestDeltas ¶
func (n *MergeMultiStream) NestDeltas() bool
func (*MergeMultiStream) SetDeltas ¶
func (n *MergeMultiStream) SetDeltas(deltaBuffers *DeltasTree)
type MergeSum ¶
type MergeSum struct {
Broadcast
}
func NewMergeSum ¶
func (*MergeSum) Configure ¶
func (n *MergeSum) Configure(inObj InputObject)
type Multicost ¶
type Multicost struct { base.ObjectBase // contains filtered or unexported fields }
func NewMulticost ¶
func (*Multicost) CostFunc ¶
func (n *Multicost) CostFunc() transforms.Cost
func (*Multicost) Initialize ¶
type ParamReader ¶
type ParamWriter ¶
type ParameterLayer ¶
type ParameterLayer struct { LayerBase // contains filtered or unexported fields }
func (*ParameterLayer) Allocate ¶
func (n *ParameterLayer) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
func (*ParameterLayer) BatchSum ¶
func (n *ParameterLayer) BatchSum() backends.Tensor
func (*ParameterLayer) GetParams ¶
func (n *ParameterLayer) GetParams() []Param
func (*ParameterLayer) InitParams ¶
func (n *ParameterLayer) InitParams(shape []int)
func (*ParameterLayer) ReadParams ¶
func (n *ParameterLayer) ReadParams(r ParamReader)
func (*ParameterLayer) WriteParams ¶
func (n *ParameterLayer) WriteParams(w ParamWriter)
type Pooling ¶
type Pooling struct { LayerBase // contains filtered or unexported fields }
func NewPooling ¶
func NewPooling(args ...interface{}) *Pooling
func (*Pooling) Configure ¶
func (n *Pooling) Configure(inObj InputObject)
func (*Pooling) SetDeltas ¶
func (n *Pooling) SetDeltas(deltaBuffers *DeltasTree)
type Reshape ¶
type Reshape struct { LayerBase // contains filtered or unexported fields }
func NewReshape ¶
func NewReshape(args ...interface{}) *Reshape
func (*Reshape) Configure ¶
func (n *Reshape) Configure(inObj InputObject)
type Sequential ¶
type Sequential struct { LayerContainer // contains filtered or unexported fields }
func NewSequential ¶
func NewSequential(layers []LayerItem, args ...interface{}) *Sequential
func (*Sequential) Allocate ¶
func (n *Sequential) Allocate(sharedOutputs backends.Tensor, accumulateUpdates bool)
func (*Sequential) AllocateDeltas ¶
func (n *Sequential) AllocateDeltas(globalDeltas *DeltasTree)
func (*Sequential) ClassName ¶
func (n *Sequential) ClassName() string
func (*Sequential) Configure ¶
func (n *Sequential) Configure(inObj InputObject)
func (*Sequential) GetTerminal ¶
func (n *Sequential) GetTerminal() []Layer
func (*Sequential) ToSequential ¶
func (n *Sequential) ToSequential() *Sequential
type SequentialTrait ¶
type SequentialTrait interface { LayerContainerTrait ToSequential() *Sequential }
type SingleOutputTree ¶
type SingleOutputTree struct {
Tree
}
func NewSingleOutputTree ¶
func NewSingleOutputTree(layers []LayerItem, args ...interface{}) *SingleOutputTree
func (*SingleOutputTree) ClassName ¶
func (n *SingleOutputTree) ClassName() string
type SkipNode ¶
type SkipNode struct {
LayerBase
}
func NewSkipNode ¶
func NewSkipNode(args ...interface{}) *SkipNode
func (*SkipNode) Configure ¶
func (n *SkipNode) Configure(inObj InputObject)
type Tree ¶
type Tree struct { LayerContainer // contains filtered or unexported fields }
func (*Tree) AllocateDeltas ¶
func (n *Tree) AllocateDeltas(globalDeltas *DeltasTree)
func (*Tree) Configure ¶
func (n *Tree) Configure(inObj InputObject)
func (*Tree) GetTerminal ¶
func (*Tree) MultiOutShape ¶
Click to show internal directories.
Click to hide internal directories.