Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nlpodyssey/spago
/ WithShape
Function
WithShape
mat/dense_new.go:28–32 ·
view source on GitHub ↗
(shape ...int)
Source
from the content-addressed store, hash-verified
26
}
27
28
func
WithShape(shape ...int) OptionsFunc {
29
return
func
(opts *Options) {
30
opts.Shape = shape
31
}
32
}
33
34
func
WithBacking[T float.DType](data []T) OptionsFunc {
35
return
func
(opts *Options) {
Callers
15
testReshapeForward
Function · 0.92
testAddScalarForward2
Function · 0.92
Backward
Method · 0.92
testStackForward
Function · 0.92
Backward
Method · 0.92
testFlattenForward
Function · 0.92
testDotForward
Function · 0.92
testMaxPoolForward
Function · 0.92
testRowForward
Function · 0.92
Backward
Method · 0.92
testAffine
Function · 0.92
testAtForward
Function · 0.92
Calls
no outgoing calls
Tested by
15
testReshapeForward
Function · 0.74
testAddScalarForward2
Function · 0.74
testStackForward
Function · 0.74
testFlattenForward
Function · 0.74
testDotForward
Function · 0.74
testMaxPoolForward
Function · 0.74
testRowForward
Function · 0.74
testAffine
Function · 0.74
testAtForward
Function · 0.74
testSliceForward
Function · 0.74
testMulForwardMatrixMatrix
Function · 0.74
testMulForwardMatrixVector
Function · 0.74