MCPcopy Create free account
hub / github.com/evilsocket/sum / SetData

Method SetData

wrapper/record.go:36–40  ·  view source on GitHub ↗
(data []float32)

Source from the content-addressed store, hash-verified

34}
35
36func (w *Record) SetData(data []float32) {
37 w.record.Data = data
38 w.Size = len(data)
39 w.vec = backend.Wrap(w.Size, data)
40}
41
42// IsNull returns true if the record wrapped by this object is nil.
43func (w *Record) IsNull() bool {

Callers 2

WrapRecordFunction · 0.95
TestWrappedRecordCosineFunction · 0.80

Calls 1

WrapMethod · 0.65

Tested by 1

TestWrappedRecordCosineFunction · 0.64