Len returns the number of elements in the tensor (product of shape dimensions).
()
| 73 | |
| 74 | // Len returns the number of elements in the tensor (product of shape dimensions). |
| 75 | func (tsr *Bits) Len() int { return tsr.Shp.Len() } |
| 76 | |
| 77 | // NumDims returns the total number of dimensions. |
| 78 | func (tsr *Bits) NumDims() int { return tsr.Shp.NumDims() } |