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