SetFloats sets tensor values from a []float64 slice (copies values).
(vals []float64)
| 165 | |
| 166 | // SetFloats sets tensor values from a []float64 slice (copies values). |
| 167 | func (tsr *Bits) SetFloats(vals []float64) { |
| 168 | sz := min(tsr.Len(), len(vals)) |
| 169 | for j := 0; j < sz; j++ { |
| 170 | tsr.Values.Set(j, Float64ToBool(vals[j])) |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | func (tsr *Bits) String1D(off int) string { |
| 175 | return reflectx.ToString(tsr.Values.Index(off)) |
nothing calls this directly
no test coverage detected