Compute And Memory Tradeoffs In Attention