calculateMemoryRequirements
Calculates memory requirements using existing TensorSpec shape information. Implements static memory allocation with ping-pong buffer strategy. Validates that all memory allocations are static and compile-time known.
Return
MemoryLayout containing all memory requirement calculations