Class ov::reference::philox::TensorflowPhiloxGenerator#

class TensorflowPhiloxGenerator : public ov::reference::philox::PhiloxGenerator#

OpenVINO specialization of the PhiloxGenerator class.

Public Functions

TensorflowPhiloxGenerator(const uint64_t global_seed, const uint64_t operator_seed, const std::pair<uint64_t, uint64_t> previous_state)#

Constructor for the TensorflowPhiloxGenerator class.

Parameters:
  • global_seed – The global seed for the Philox algorithm

  • operator_seed – The operator seed for the Philox algorithm

  • previous_state – The state returned from the previous execution of the generator

virtual PhiloxOutput random() override#

Get a set of 4 random 32-bit unsigned integers based on the seeds.

Returns:

A structure with a random set of 32-bit unsigned integers.

virtual std::pair<uint64_t, uint64_t> get_next_state() override#

Returns the modified state to feed to the next execution.

Returns:

A pair of uint64s that represent the output state to be fed to the next generator execution.