size_of#

bayesflow.utils.size_of(x) int[source]#
Parameters:

x – A nested structure of tensors.

Returns:

The total memory footprint of x, ignoring view semantics, in bytes.