Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attention ¶ added in v1.4.1
type Attention struct {
// contains filtered or unexported fields
}
func NewAttention ¶ added in v1.4.1
func (*Attention) Parameters ¶ added in v1.4.1
func (*Attention) ToDevice ¶ added in v1.4.1
func (m *Attention) ToDevice(device consts.DeviceType)
func (*Attention) ToScalarType ¶ added in v1.4.1
func (m *Attention) ToScalarType(t consts.ScalarType)
type Embedding ¶ added in v1.4.1
type Embedding struct {
// contains filtered or unexported fields
}
func NewEmbedding ¶ added in v1.4.1
func (*Embedding) Parameters ¶ added in v1.4.1
func (*Embedding) ToDevice ¶ added in v1.4.1
func (m *Embedding) ToDevice(device consts.DeviceType)
func (*Embedding) ToScalarType ¶ added in v1.4.1
func (m *Embedding) ToScalarType(t consts.ScalarType)
type LayerNorm ¶
type LayerNorm struct {
// contains filtered or unexported fields
}
func NewLayerNorm ¶
func (*LayerNorm) Parameters ¶
func (*LayerNorm) ToDevice ¶
func (m *LayerNorm) ToDevice(device consts.DeviceType)
func (*LayerNorm) ToScalarType ¶
func (m *LayerNorm) ToScalarType(t consts.ScalarType)
type Linear ¶
type Linear struct {
// contains filtered or unexported fields
}
func (*Linear) Parameters ¶
func (*Linear) ToDevice ¶
func (m *Linear) ToDevice(device consts.DeviceType)
func (*Linear) ToScalarType ¶
func (m *Linear) ToScalarType(t consts.ScalarType)
Click to show internal directories.
Click to hide internal directories.