total_size rescales the probability of a variable, usually used in conjunction with minibatch, where you give 20% of the datapoints and then rescale it as if 100% had been given.
As I wrote above, support of rescaling (total_size) with CustomDist was implemented recently and will only be available in the next release