estimateMaterializationCost

Estimates the memory overhead of materializing this tensor view.

This method provides insight into the memory cost of materialization using the default strategy, helping with resource planning and memory management decisions.

Return

estimated memory overhead in bytes for default materialization

Parameters

T

the data type constraint extending DType

V

the actual value type that will be stored and accessed


Estimates the memory overhead of materializing this tensor view with a specific strategy.

This method provides strategy-specific memory cost estimation, allowing comparison between different materialization approaches.

Return

estimated 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