CopyMetaData copies meta data from given source tensor
(frm Tensor)
| 224 | |
| 225 | // CopyMetaData copies meta data from given source tensor |
| 226 | func (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 |
| 240 | func (tsr *Bits) Range() (min, max float64, minIndex, maxIndex int) { |
nothing calls this directly
no test coverage detected