Representing Data as Atoms: Unifying Intra- and Inter-Sample Relationship to Discretize Data Representation