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

Method Data

mat/tensor.go:22–22  ·  view source on GitHub ↗

Data returns the underlying data of the tensor.

()

Source from the content-addressed store, hash-verified

20 Size() int
21 // Data returns the underlying data of the tensor.
22 Data() float.Slice
23 // Item returns the scalar value.
24 // It panics if the matrix does not contain exactly one element.
25 Item() float.Float

Callers 15

testDenseReshapeFunction · 0.65
testDenseSoftmaxFunction · 0.65
testDenseNormFunction · 0.65
testDenseNormalize2Function · 0.65
assertDenseDimsFunction · 0.65
DataFunction · 0.65
EqualFunction · 0.65
InDeltaFunction · 0.65
float32DataFunction · 0.65
float64DataFunction · 0.65
TestDense_MarshalingFunction · 0.65
testNewDenseFunction · 0.65

Implementers 1

Operatorag/operator.go

Calls

no outgoing calls

Tested by 15

testDenseReshapeFunction · 0.52
testDenseSoftmaxFunction · 0.52
testDenseNormFunction · 0.52
testDenseNormalize2Function · 0.52
assertDenseDimsFunction · 0.52
TestDense_MarshalingFunction · 0.52
testNewDenseFunction · 0.52
testNewVecDenseFunction · 0.52
testReshapeForwardFunction · 0.52
testAddForwardFunction · 0.52
testAddScalarForwardFunction · 0.52
testAddScalarForward2Function · 0.52