Tensor Shape Search for Optimum Data Compression