Documentation
¶
Index ¶
- type Embedding
- func (e *Embedding) Backward(gradOutput *tensor.Tensor, learningRate float32) *tensor.Tensor
- func (e *Embedding) Forward(indices *tensor.Tensor) *tensor.Tensor
- func (e *Embedding) GetBias() *tensor.Tensor
- func (e *Embedding) GetWeights() *tensor.Tensor
- func (e *Embedding) Parameters() []*tensor.Tensor
- func (e *Embedding) SetBiasAndShape(data []float32, shape []int)
- func (e *Embedding) SetWeightsAndShape(data []float32, shape []int)
- func (e *Embedding) ZeroGrad()
- type Layer
- type LayerForTesting
- type LayerLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embedding ¶
type Embedding struct {
Weights *tensor.Tensor
GradWeights *tensor.Tensor
VocabSize int
EmbDim int
LastIndices []int
}
func NewEmbedding ¶
func (*Embedding) GetWeights ¶
func (*Embedding) Parameters ¶
func (*Embedding) SetBiasAndShape ¶
func (*Embedding) SetWeightsAndShape ¶
type LayerForTesting ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
07_autoencoder_compute_graph
command
|
|
|
08_complier_testing
command
|
|
|
data_store
|
|
|
datasets_loader
|
|
|
legacy
|
|
|
00_standalone_example
command
|
|
|
01_polynomial_regression
command
|
|
|
02_cnn_mnist_handwrite_recognize
command
|
|
|
03_autoencoder
command
|
|
|
04_variational_autoencoder
command
|
|
|
04_variational_autoencoder/py
command
|
|
|
06_layer_testing
command
|
|
|
pkg
|
|
|
risc-v
|
|
|
rv64-core/cmd/vm
command
|
|
|
rv64-core/pkg/rv64/cmd/make
command
|
|
|
rv64-core/pkg/rv64/cmd/rv64
command
|
|
|
thirdparty
|
|
|
fp16_convert
Package float16 defines support for half-precision floating-point numbers.
|
Package float16 defines support for half-precision floating-point numbers. |
|
onnx-go/backend/simple
Package simple holds a very simple graph structure suitable to receive an onnx model
|
Package simple holds a very simple graph structure suitable to receive an onnx model |
|
onnx-go/backend/testbackend
Package testbackend provides a set of testing helper functions that test backend interface implementations.
|
Package testbackend provides a set of testing helper functions that test backend interface implementations. |
|
onnx-go/backend/testbackend/onnx
Package onnxtest contains an export of the onnx test files
|
Package onnxtest contains an export of the onnx test files |
|
onnx-go/backend/x/gorgonnx
Package gorgonnx creates a temporary graph that is compatible with backend.ComputationBackend.
|
Package gorgonnx creates a temporary graph that is compatible with backend.ComputationBackend. |
|
onnx-go/doc/introduction
command
Present displays slide presentations and articles.
|
Present displays slide presentations and articles. |
|
onnx-go/doc/introduction/samples
command
|
|
|
onnx-go/doc/introduction/utils
command
|
|
|
onnx-go/examples/emotions
command
|
|
|
onnx-go/examples/tiny_yolov2
command
|
|
|
onnx-go/internal/tools/dump
command
|
|
|
onnx-go/misc/viewer
command
|
|
|
tiktoken/cmd/tokenizer
command
|
|
|
tiktoken/internal/cmd
command
|
|
|
vision
|
|
Click to show internal directories.
Click to hide internal directories.





