Switchable Representation Learning Framework with Self-compatibility