Documentation
¶
Index ¶
- type Layer
- func (l *Layer) BackProp(handle *cudnn.Handler, x, dx, dy *layers.Tensor) error
- func (l *Layer) Bias() *layers.Tensor
- func (l *Layer) ForwardInference(handle *cudnn.Handler, x, y *layers.Tensor) error
- func (l *Layer) ForwardProp(handle *cudnn.Handler, x, y *layers.Tensor) error
- func (l *Layer) LoadTrainer(handle *cudnn.Handler, trainerscale, trainerbias trainer.Trainer) error
- func (l *Layer) Scale() *layers.Tensor
- func (l *Layer) SetBackwardScalars(alpha, beta float64)
- func (l *Layer) SetEps(eps float64)
- func (l *Layer) SetForwardScalars(alpha, beta float64)
- func (l *Layer) SetOtherScalars(alpha, beta float64)
- func (l *Layer) SetupPreset(handle *cudnn.Handler, x *layers.Tensor) (err error)
- func (l *Layer) Trainers() (scale, bias trainer.Trainer)
- func (l *Layer) UpdateWeights(handle *cudnn.Handler, batch, epoch int) error
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
Layer the ops of a batch norm
func PerActivationPreset ¶
PerActivationPreset will presetup some values for the batch norm PerActivation
func SpatialPersistantPreset ¶
SpatialPersistantPreset will presetup some values for the batch norm SpatialPersistantPreset Mode
func SpatialPreset ¶
SpatialPreset will presetup some values for the batch norm Spatial Mode
func (*Layer) ForwardInference ¶
ForwardInference Does the Testing Forward Prop and used for production
func (*Layer) ForwardProp ¶
ForwardProp Does the Training Forward Prop of batch norm layer
func (*Layer) LoadTrainer ¶
LoadTrainer sets up the momentum trainer
func (*Layer) SetBackwardScalars ¶
SetBackwardScalars sets the backward scalars
func (*Layer) SetForwardScalars ¶
SetForwardScalars sets the forward scalars
func (*Layer) SetOtherScalars ¶
SetOtherScalars these set the weights
func (*Layer) SetupPreset ¶
SetupPreset will allocate all the memory needed for the batch norm with the values passed when using one of the Preset functions
type Settings ¶
type Settings struct { Mode gocudnn.BatchNormMode `json:"mode,omitempty"` Managed bool `json:"managed,omitempty"` }
Settings contains all the paramters needed to build a batchnorm layer