dimod.QuadraticModel.nbytes¶
- QuadraticModel.nbytes(capacity: bool = False) int [source]¶
Get the total bytes consumed by the biases, vartype info, bounds, and indices.
Does not include the memory consumed by non-element attributes of the quadratic model object. Also does not include the memory consumed by the variable labels.
- Parameters
capacity – If
capacity
is true, also include thestd::vector::capacity
calculation. (of the underlying vectors in the) –
- Returns
The number of bytes.