RowCellSize returns the size of the outer-most Row shape dimension, and the size of all the remaining inner dimensions (the "cell" size). Used for Tensors that are columns in a data table.
()
| 84 | // and the size of all the remaining inner dimensions (the "cell" size). |
| 85 | // Used for Tensors that are columns in a data table. |
| 86 | func (tsr *Bits) RowCellSize() (rows, cells int) { |
| 87 | return tsr.Shp.RowCellSize() |
| 88 | } |
| 89 | |
| 90 | // Value returns value at given tensor index |
| 91 | func (tsr *Bits) Value(i []int) bool { j := int(tsr.Shp.Offset(i)); return tsr.Values.Index(j) } |
no test coverage detected