ONE - On-device Neural Engine
|
Functions | |
PHILOX_DEVICE_INLINE Eigen::half | Uint16ToHalf (uint16_t x) |
PHILOX_DEVICE_INLINE float | Uint32ToFloat (uint32_t x) |
PHILOX_DEVICE_INLINE double | Uint64ToDouble (uint32_t x0, uint32_t x1) |
template<typename Int > | |
PHILOX_DEVICE_INLINE Int | SignedAdd (Int a, typename std::make_unsigned< Int >::type b) |
PHILOX_DEVICE_INLINE void | BoxMullerFloat (uint32_t x0, uint32_t x1, float *f0, float *f1) |
PHILOX_DEVICE_INLINE void | BoxMullerDouble (uint32_t x0, uint32_t x1, uint32_t x2, uint32_t x3, double *d0, double *d1) |
PHILOX_DEVICE_INLINE void nnfw::cker::random::BoxMullerDouble | ( | uint32_t | x0, |
uint32_t | x1, | ||
uint32_t | x2, | ||
uint32_t | x3, | ||
double * | d0, | ||
double * | d1 | ||
) |
Definition at line 693 of file RandomDistributions.h.
References Uint64ToDouble().
Referenced by nnfw::cker::random::NormalDistribution< Generator, double >::operator()(), and nnfw::cker::random::TruncatedNormalDistribution< SingleSampleGenerator, double >::operator()().
PHILOX_DEVICE_INLINE void nnfw::cker::random::BoxMullerFloat | ( | uint32_t | x0, |
uint32_t | x1, | ||
float * | f0, | ||
float * | f1 | ||
) |
Definition at line 666 of file RandomDistributions.h.
References Uint32ToFloat().
Referenced by nnfw::cker::random::NormalDistribution< Generator, Eigen::half >::operator()(), nnfw::cker::random::NormalDistribution< Generator, float >::operator()(), nnfw::cker::random::TruncatedNormalDistribution< SingleSampleGenerator, Eigen::half >::operator()(), and nnfw::cker::random::TruncatedNormalDistribution< SingleSampleGenerator, float >::operator()().
PHILOX_DEVICE_INLINE Int nnfw::cker::random::SignedAdd | ( | Int | a, |
typename std::make_unsigned< Int >::type | b | ||
) |
Definition at line 57 of file RandomDistributions.h.
Referenced by nnfw::cker::random::UniformDistribution< Generator, int32_t >::operator()(), and nnfw::cker::random::UniformDistribution< Generator, int64_t >::operator()().
PHILOX_DEVICE_INLINE Eigen::half nnfw::cker::random::Uint16ToHalf | ( | uint16_t | x | ) |
Definition at line 718 of file RandomDistributions.h.
Referenced by nnfw::cker::random::UniformDistribution< Generator, Eigen::half >::operator()().
PHILOX_DEVICE_INLINE float nnfw::cker::random::Uint32ToFloat | ( | uint32_t | x | ) |
Definition at line 736 of file RandomDistributions.h.
Referenced by BoxMullerFloat(), and nnfw::cker::random::UniformDistribution< Generator, float >::operator()().
PHILOX_DEVICE_INLINE double nnfw::cker::random::Uint64ToDouble | ( | uint32_t | x0, |
uint32_t | x1 | ||
) |
Definition at line 755 of file RandomDistributions.h.
Referenced by BoxMullerDouble(), and nnfw::cker::random::UniformDistribution< Generator, double >::operator()().