Class ov::reference::philox::PytorchPhiloxGenerator#

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

PyTorch specialization of the PhiloxGenerator class.

Public Functions

PytorchPhiloxGenerator(const uint64_t global_seed)#

Constructor for the PytorchPhiloxGenerator class.

Note

This version of the Philox algorithm does NOT use operator seed, and. does not support the use of the previous/next state.

Parameters:

global_seed – The operator seed for the Philox algorithm

virtual PhiloxOutput random() override#

Get a set of random 32-bit unsigned integers based on the seed(s).

Returns:

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

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

Returns the INPUT state to feed to the next execution, as the algorithm does not use this to compute results.