MCPcopy Create free account
hub / github.com/cogentcore/core / CopyMetaData

Method CopyMetaData

tensor/bits.go:226–237  ·  view source on GitHub ↗

CopyMetaData copies meta data from given source tensor

(frm Tensor)

Source from the content-addressed store, hash-verified

224
225// CopyMetaData copies meta data from given source tensor
226func (tsr *Bits) CopyMetaData(frm Tensor) {
227 fmap := frm.MetaDataMap()
228 if len(fmap) == 0 {
229 return
230 }
231 if tsr.Meta == nil {
232 tsr.Meta = make(map[string]string)
233 }
234 for k, v := range fmap {
235 tsr.Meta[k] = v
236 }
237}
238
239// Range is not applicable to Bits tensor
240func (tsr *Bits) Range() (min, max float64, minIndex, maxIndex int) {

Callers

nothing calls this directly

Calls 1

MetaDataMapMethod · 0.65

Tested by

no test coverage detected