ewoksfluo.resource_utils.array_block_size#
- ewoksfluo.resource_utils.array_block_size(item_shape, dtype, max_workers, multiplier=1)[source]#
Number of items that can be processing in parallel while staying within the memory limits.
- Parameters:
item_shape (
Tuple[int,...])dtype (
Union[type[Any],dtype[Any],_SupportsDType[dtype[Any]],tuple[Any,Any],list[Any],_DTypeDict,str,None])max_workers (
int)multiplier (
int)
- Return type:
int