zfit / phasespace

Phase space generation implemented in TensorFlow
https://phasespace.rtfd.io
BSD 3-Clause "New" or "Revised" License
24 stars 9 forks source link

Upgrade random number generation #36

Closed jonas-eschle closed 3 years ago

jonas-eschle commented 4 years ago

Replace the deprecated tf.random.uniform with the new RandomGenerator

Open question: how to expose this to the user?

Proposal: follow the api of TFPs distributions interface of "sample", which allows for a seed or a SeedStream. Not sure whether to allow the later.