MCPcopy
hub / github.com/nlpodyssey/spago / Forward

Method Forward

nn/model.go:105–105  ·  view source on GitHub ↗

Forward executes the forward step of the model.

(...mat.Tensor)

Source from the content-addressed store, hash-verified

103
104 // Forward executes the forward step of the model.
105 Forward(...mat.Tensor) []mat.Tensor
106}
107
108type ModuleList[T StandardModel] []T

Callers 15

testReshapeForwardFunction · 0.65
testAddForwardFunction · 0.65
testAddScalarForwardFunction · 0.65
testAddScalarForward2Function · 0.65
testSwishBForwardFunction · 0.65
testReduceSumForwardFunction · 0.65
testScalarProdForwardFunction · 0.65
testELUForwardFunction · 0.65
testAbsForwardFunction · 0.65
testSafeLogForwardFunction · 0.65
testTanForwardFunction · 0.65
testTanhForwardFunction · 0.65

Implementers 15

Modelnn/attention/selfattention/model.go
Modelnn/attention/multiheadattention/model.
Modelnn/linear/linear.go
Modelnn/sgu/model.go
Modelnn/dropout/dropout.go
Modelnn/flatten/flatten.go
Modelnn/convolution/convolution2d/model.go
Modelnn/convolution/conv1x1/model.go
Modelnn/convolution/convolution1d/model.go
Modelnn/recurrent/srn/srn.go
Modelnn/recurrent/lstm/lstm.go
Modelnn/recurrent/gru/gru.go

Calls

no outgoing calls

Tested by 15

testReshapeForwardFunction · 0.52
testAddForwardFunction · 0.52
testAddScalarForwardFunction · 0.52
testAddScalarForward2Function · 0.52
testSwishBForwardFunction · 0.52
testReduceSumForwardFunction · 0.52
testScalarProdForwardFunction · 0.52
testELUForwardFunction · 0.52
testAbsForwardFunction · 0.52
testSafeLogForwardFunction · 0.52
testTanForwardFunction · 0.52
testTanhForwardFunction · 0.52