Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 394 Bytes

File metadata and controls

16 lines (13 loc) · 394 Bytes

Reproducibility

Tensor operations or structs that use randomness will require either a seed, a Generator, or will use the global Generator.

The global generator can be set through the use of a seed

uint64_t seed = 0;
set_default_generator_seed(seed);

Generator objects can also be created, and passed along as needed

Generator gen(seed);