Correct the datum size checking conditions
Initialize the transformer rng in the base data layer