pyphi.cost.shard_memory_bytes#
- pyphi.cost.shard_memory_bytes(max_repertoire_cells)[source]#
Estimated peak memory of a shard from its largest repertoire.
REPERTOIRE_FACTOR × 8 bytes × max_repertoire_cells + BASE_MEMORY_BYTES + CACHE_HEADROOM_BYTES. The factor and base are calibration constants; the headroom is the cache allowance thatshard_cache_budget_bytes()enforces during execution. Requests derived from this estimate are rounded withround_memory_bytes().