For sparse variables, for instance, the shape is not enough to know how much memory was actually used.