#include <PhiloxRandom.h>
Definition at line 107 of file PhiloxRandom.h.
◆ Key
◆ ResultElementType
◆ ResultType
◆ PhiloxRandom() [1/4]
◆ PhiloxRandom() [2/4]
Definition at line 124 of file PhiloxRandom.h.
125 {
126 key_[0] = static_cast<uint32_t>(seed);
127 key_[1] = static_cast<uint32_t>(seed >> 32);
128 }
◆ PhiloxRandom() [3/4]
PHILOX_DEVICE_INLINE nnfw::cker::random::PhiloxRandom::PhiloxRandom |
( |
uint64_t |
seed_lo, |
|
|
uint64_t |
seed_hi |
|
) |
| |
|
inlineexplicit |
Definition at line 131 of file PhiloxRandom.h.
132 {
133 key_[0] = static_cast<uint32_t>(seed_lo);
134 key_[1] = static_cast<uint32_t>(seed_lo >> 32);
135 counter_[2] = static_cast<uint32_t>(seed_hi);
136 counter_[3] = static_cast<uint32_t>(seed_hi >> 32);
137 }
◆ PhiloxRandom() [4/4]
Definition at line 140 of file PhiloxRandom.h.
PHILOX_DEVICE_INLINE Key const & key() const
PHILOX_DEVICE_INLINE ResultType const & counter() const
◆ counter()
◆ key()
◆ operator()()
Definition at line 173 of file PhiloxRandom.h.
174 {
177
178
179
199
200 SkipOne();
201
203 }
Array< uint32_t, 4 > ResultType
References counter(), and key().
◆ Skip()
◆ kElementCost
constexpr int nnfw::cker::random::PhiloxRandom::kElementCost = 10 |
|
staticconstexpr |
◆ kResultElementCount
constexpr int nnfw::cker::random::PhiloxRandom::kResultElementCount = 4 |
|
staticconstexpr |
The documentation for this class was generated from the following file: