Documentation
¶
Index ¶
- type Dense
- type Dropout
- type Flatten
- type Layer
- func LoadDense(name string, params map[string]*pb.Dense, args map[string]float32) Layer
- func LoadDropout(name string, _ map[string]*pb.Dense, args map[string]float32) Layer
- func LoadFlatten(name string, params map[string]*pb.Dense, args map[string]float32) Layer
- func LoadLstm(name string, params map[string]*pb.Dense, args map[string]float32) Layer
- func LoadNor(name string, params map[string]*pb.Dense, args map[string]float32) Layer
- func LoadRnn(name string, params map[string]*pb.Dense, args map[string]float32) Layer
- func LoadSelfAttention(name string, params map[string]*pb.Dense, args map[string]float32) Layer
- type Lstm
- type Nor
- type Rnn
- type SelfAttention
- func (layer *SelfAttention) Args() map[string]float32
- func (b SelfAttention) Class() string
- func (layer *SelfAttention) Forward(q, k *tensor.Tensor) *tensor.Tensor
- func (b SelfAttention) Name() string
- func (layer *SelfAttention) Params() map[string]*tensor.Tensor
- func (b SelfAttention) SetName(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dropout ¶
type Dropout struct {
// contains filtered or unexported fields
}
func NewDropout ¶
type Flatten ¶ added in v1.0.0
type Flatten struct {
// contains filtered or unexported fields
}
func NewFlatten ¶ added in v1.0.0
func NewFlatten() *Flatten
type Layer ¶
type Layer interface {
Params() map[string]*tensor.Tensor
Class() string
SetName(name string)
Name() string
Args() map[string]float32
}
func LoadDropout ¶
func LoadFlatten ¶ added in v1.0.0
type Lstm ¶ added in v1.0.0
type Lstm struct {
Wi, Bi *tensor.Tensor
Wf, Bf *tensor.Tensor
Wg, Bg *tensor.Tensor
Wo, Bo *tensor.Tensor
// contains filtered or unexported fields
}
type SelfAttention ¶ added in v1.0.0
type SelfAttention struct {
// contains filtered or unexported fields
}
func NewSelfAttention ¶ added in v1.0.0
func NewSelfAttention(steps, dims, heads int) *SelfAttention
func (*SelfAttention) Args ¶ added in v1.0.0
func (layer *SelfAttention) Args() map[string]float32
func (*SelfAttention) Forward ¶ added in v1.0.0
func (layer *SelfAttention) Forward(q, k *tensor.Tensor) *tensor.Tensor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.