estimateBatchMaterializationCost
Estimates the total memory overhead for batch materializing a list of views.
This method provides insight into the total memory cost of batch materialization, helping with resource planning and decision making about whether to materialize views individually or as a batch.
Return
the estimated total memory overhead in bytes for batch materialization
Parameters
T
the data type constraint extending DType
V
the actual value type that will be stored and accessed
fun <T : DType, V> List<TensorView<T, V>>.estimateBatchMaterializationCost(strategy: MaterializationStrategy<T, V>): Long(source)
Estimates the total memory overhead using a specific materialization strategy.
Return
the estimated total memory overhead in bytes for the specified strategy
Parameters
T
the data type constraint extending DType
V
the actual value type that will be stored and accessed
strategy
the MaterializationStrategy to estimate costs for