SetShape sets the shape params, resizing backing storage appropriately
(sizes []int, names ...string)
| 98 | |
| 99 | // SetShape sets the shape params, resizing backing storage appropriately |
| 100 | func (tsr *Bits) SetShape(sizes []int, names ...string) { |
| 101 | tsr.Shp.SetShape(sizes, names...) |
| 102 | nln := tsr.Len() |
| 103 | tsr.Values.SetLen(nln) |
| 104 | } |
| 105 | |
| 106 | // SetNumRows sets the number of rows (outer-most dimension) in a RowMajor organized tensor. |
| 107 | func (tsr *Bits) SetNumRows(rows int) { |
no test coverage detected