quantum icon indicating copy to clipboard operation
quantum copied to clipboard

[PR2/? from #774] Fix PhiloxRandom usage

Open QuantumJaeYoo opened this issue 2 years ago • 0 comments

This PR standardizes the way of using PhiloxRandom generators based on TensorFlow's random ops.

  • RandomOps have seed / seed2 attributes with SetIsStateful() option (codes)
  • Random generators are initialized at the constructor with OpContext (codes)
  • So the random number generator is a private member variable (codes)

QuantumJaeYoo avatar Jun 16 '23 23:06 QuantumJaeYoo