/external/libaom/libaom/test/ |
D | blend_a64_mask_test.cc | 56 switch (this->rng_(3)) { in GetSources() 83 uint8_t Rand1() { return this->rng_.Rand8() & 1; } in Rand1() 93 dst_offset_ = this->rng_(33); in RunOneTest() 94 dst_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_; in RunOneTest() 96 src0_offset_ = this->rng_(33); in RunOneTest() 97 src0_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_; in RunOneTest() 99 src1_offset_ = this->rng_(33); in RunOneTest() 100 src1_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_; in RunOneTest() 103 this->rng_(kMaxWidth + 1 - w_ * (subx_ ? 2 : 1)) + w_ * (subx_ ? 2 : 1); in RunOneTest() 196 int bsize = rng_.Rand8() % BLOCK_SIZES_ALL; in TEST_P() [all …]
|
D | pickrst_test.cc | 72 libaom_test::ACMRandom rng_; member in pickrst_test_lowbd::PixelProjErrorTest 80 int h_end = run_times != 1 ? 128 : (rng_.Rand16() % MAX_DATA_BLOCK) + 1; in RunPixelProjErrorTest() 81 int v_end = run_times != 1 ? 128 : (rng_.Rand16() % MAX_DATA_BLOCK) + 1; in RunPixelProjErrorTest() 92 dgd_[i] = rng_.Rand8(); in RunPixelProjErrorTest() 93 src_[i] = rng_.Rand8(); in RunPixelProjErrorTest() 94 flt0_[i] = rng_.Rand15Signed(); in RunPixelProjErrorTest() 95 flt1_[i] = rng_.Rand15Signed(); in RunPixelProjErrorTest() 97 xq[0] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest() 98 xq[1] = rng_.Rand8() % (1 << SGRPROJ_PRJ_BITS); in RunPixelProjErrorTest() 99 params.r[0] = run_times == 1 ? (rng_.Rand8() % MAX_RADIUS) : (iter % 2); in RunPixelProjErrorTest() [all …]
|
D | blend_a64_mask_1d_test.cc | 49 w_ = 2 << this->rng_(MAX_SB_SIZE_LOG2); in Common() 50 h_ = 2 << this->rng_(MAX_SB_SIZE_LOG2); in Common() 52 dst_offset_ = this->rng_(33); in Common() 53 dst_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_; in Common() 55 src0_offset_ = this->rng_(33); in Common() 56 src0_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_; in Common() 58 src1_offset_ = this->rng_(33); in Common() 59 src1_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_; in Common() 64 switch (this->rng_(3)) { in Common() 137 dst_ref_[i] = rng_.Rand8(); in TEST_P() [all …]
|
D | av1_wedge_utils_test.cc | 42 WedgeUtilsSSEFuncTest() : rng_(ACMRandom::DeterministicSeed()) {} in WedgeUtilsSSEFuncTest() 46 ACMRandom rng_; member in __anon8b9c9ca30111::WedgeUtilsSSEFuncTest 89 s[i] = rng_.Rand8(); in TEST_F() 90 m[i] = rng_(MAX_MASK_VALUE + 1); in TEST_F() 93 const int w = 1 << (rng_(MAX_SB_SIZE_LOG2 + 1 - 3) + 3); in TEST_F() 94 const int h = 1 << (rng_(MAX_SB_SIZE_LOG2 + 1 - 3) + 3); in TEST_F() 98 p0[j] = clamp(s[j] + rng_(33) - 16, 0, UINT8_MAX); in TEST_F() 99 p1[j] = clamp(s[j] + rng_(33) - 16, 0, UINT8_MAX); in TEST_F() 139 r1[i] = rng_(2 * INT8_MAX - 2 * INT8_MIN + 1) + 2 * INT8_MIN; in TEST_F() 140 d[i] = rng_(2 * INT8_MAX - 2 * INT8_MIN + 1) + 2 * INT8_MIN; in TEST_F() [all …]
|
D | intra_edge_test.cc | 82 size_ = 4 * (this->rng_(4) + 1); in TEST_P() 86 pix = rng_.Rand8(); in TEST_P() 127 switch (rng_(3)) { in TEST_P() 134 size_ = 4 * (this->rng_(4) + 1); in TEST_P() 138 pix = rng_(hi); in TEST_P() 211 strength_ = this->rng_(4); in TEST_P() 212 size_ = 4 * (this->rng_(128 / 4) + 1) + 1; in TEST_P() 216 pix = rng_.Rand8(); in TEST_P() 250 switch (rng_(3)) { in TEST_P() 256 strength_ = this->rng_(4); in TEST_P() [all …]
|
D | obmc_variance_test.cc | 50 const int pre_stride = this->rng_(MAX_SB_SIZE + 1); in TEST_P() 53 pre[i] = this->rng_.Rand8(); in TEST_P() 54 wsrc[i] = this->rng_.Rand8() * this->rng_(kMaskMax * kMaskMax + 1); in TEST_P() 55 mask[i] = this->rng_(kMaskMax * kMaskMax + 1); in TEST_P() 101 const int pre_stride = this->rng_(MAX_SB_SIZE + 1); in TEST_P() 104 pre[i] = this->rng_.Rand8(); in TEST_P() 105 wsrc[i] = this->rng_.Rand8() * this->rng_(kMaskMax * kMaskMax + 1); in TEST_P() 106 mask[i] = this->rng_(kMaskMax * kMaskMax + 1); in TEST_P() 207 const int pre_stride = this->rng_(MAX_SB_SIZE + 1); in TEST_P() 210 pre[i] = this->rng_(1 << params_.bit_depth); in TEST_P() [all …]
|
D | obmc_sad_test.cc | 47 const int pre_stride = rng_(MAX_SB_SIZE + 1); in TEST_P() 50 pre[i] = rng_.Rand8(); in TEST_P() 51 wsrc[i] = rng_.Rand8() * rng_(kMaskMax * kMaskMax + 1); in TEST_P() 52 mask[i] = rng_(kMaskMax * kMaskMax + 1); in TEST_P() 162 const int pre_stride = rng_(MAX_SB_SIZE + 1); in TEST_P() 165 pre[i] = rng_(1 << 12); in TEST_P() 166 wsrc[i] = rng_(1 << 12) * rng_(kMaskMax * kMaskMax + 1); in TEST_P() 167 mask[i] = rng_(kMaskMax * kMaskMax + 1); in TEST_P()
|
D | av1_nn_predict_test.cc | 68 libaom_test::ACMRandom rng_; member in __anonf412f50d0111::NnPredictTest 99 inputs[node] = ((float)rng_.Rand31() - (1 << 30)) / (1u << 31); in RunNnPredictTest() 103 bias[layer][node] = ((float)rng_.Rand31() - (1 << 30)) / (1u << 31); in RunNnPredictTest() 107 weights[layer][node] = ((float)rng_.Rand31() - (1 << 30)) / (1u << 31); in RunNnPredictTest() 113 bias[layer][node] = ((float)rng_.Rand31() - (1 << 30)) / (1u << 31); in RunNnPredictTest() 117 weights[layer][node] = ((float)rng_.Rand31() - (1 << 30)) / (1u << 31); in RunNnPredictTest()
|
D | wiener_test.cc | 139 libaom_test::ACMRandom rng_; member in wiener_lowbd::WienerTest 151 const int h_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest() 153 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest() 154 const int v_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest() 156 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest() 162 dgd_buf[i] = rng_.Rand8(); in RunWienerTest() 163 src_buf[i] = rng_.Rand8(); in RunWienerTest() 416 libaom_test::ACMRandom rng_; member in wiener_highbd::WienerTestHighbd 430 const int h_start = ((rng_.Rand16() % (MAX_WIENER_BLOCK / 2)) & (~7)); in RunWienerTest() 432 run_times != 1 ? 256 : ((rng_.Rand16() % MAX_WIENER_BLOCK) & (~7)) + 8; in RunWienerTest() [all …]
|
D | horver_correlation_test.cc | 48 ACMRandom rng_; member in __anon31b562d70111::HorverTest 61 data_buf_[i] = (rng_.Rand16() % (1 << 12)) - (1 << 11); in RunHorverTest() 80 data_buf_[i] = rng_.Rand16() % (1 << 12); in RunHorverSpeedTest()
|
D | function_equivalence_test.h | 57 FunctionEquivalenceTest() : rng_(ACMRandom::DeterministicSeed()) {} in FunctionEquivalenceTest() 66 ACMRandom rng_;
|
D | sum_squares_test.cc | 193 src[i] = rng_(kInt13Max * 2 + 1) - kInt13Max; in TEST_P() 195 const int N = rng_(2) ? rng_(kMaxSize * kMaxSize + 1 - kMaxSize) + kMaxSize in TEST_P() 196 : rng_(kMaxSize) + 1; in TEST_P() 210 if (rng_(2)) { in TEST_P() 216 const int N = rng_(2) ? rng_(kMaxSize * kMaxSize + 1 - kMaxSize) + kMaxSize in TEST_P() 217 : rng_(kMaxSize) + 1; in TEST_P()
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_rng.cc | 64 GpuRng::GpuRng(GpuExecutor* parent) : parent_(parent), rng_(nullptr) {} in GpuRng() 67 if (rng_ != nullptr) { in ~GpuRng() 69 curandDestroyGenerator(rng_); in ~GpuRng() 75 CHECK(rng_ == nullptr); in Init() 78 curandStatus_t ret = curandCreateGenerator(&rng_, CURAND_RNG_PSEUDO_DEFAULT); in Init() 84 CHECK(rng_ != nullptr); in Init() 90 curandStatus_t ret = curandSetStream(rng_, AsGpuStreamValue(stream)); in SetStream() 129 rng_, reinterpret_cast<float*>(GpuMemoryMutable(v)), element_count); in DoPopulateRandUniformInternal() 132 rng_, reinterpret_cast<double*>(GpuMemoryMutable(v)), element_count); in DoPopulateRandUniformInternal() 176 func(rng_, GpuMemoryMutable(v), element_count, mean, stddev); in DoPopulateRandGaussianInternal() [all …]
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_rng.cc | 119 GpuRng::GpuRng(GpuExecutor* parent) : parent_(parent), rng_(nullptr) {} in GpuRng() 122 if (rng_ != nullptr) { in ~GpuRng() 123 wrap::hiprandDestroyGenerator(parent_, rng_); in ~GpuRng() 129 CHECK(rng_ == nullptr); in Init() 132 wrap::hiprandCreateGenerator(parent_, &rng_, HIPRAND_RNG_PSEUDO_DEFAULT); in Init() 138 CHECK(rng_ != nullptr); in Init() 144 wrap::hiprandSetStream(parent_, rng_, AsGpuStreamValue(stream)); in SetStream() 182 parent_, rng_, reinterpret_cast<float*>(GpuMemoryMutable(v)), in DoPopulateRandUniformInternal() 186 parent_, rng_, reinterpret_cast<double*>(GpuMemoryMutable(v)), in DoPopulateRandUniformInternal() 230 func(parent_, rng_, GpuMemoryMutable(v), element_count, mean, stddev); in DoPopulateRandGaussianInternal() [all …]
|
/external/tensorflow/tensorflow/stream_executor/ |
D | plugin.cc | 26 : blas_(kDefault), dnn_(kDefault), fft_(kDefault), rng_(kDefault) {} in PluginConfig() 30 rng_ == rhs.rng_; in operator ==() 49 rng_ = rng; in SetRng()
|
D | plugin.h | 79 PluginId rng() const { return rng_; } in rng() 82 PluginId blas_, dnn_, fft_, rng_;
|
/external/libtextclassifier/abseil-cpp/absl/base/internal/ |
D | exponential_biased.cc | 46 uint64_t rng = NextRandom(rng_); in GetSkipCount() 47 rng_ = rng; in GetSkipCount() 87 rng_ = r; in Initialize()
|
/external/webrtc/third_party/abseil-cpp/absl/base/internal/ |
D | exponential_biased.cc | 46 uint64_t rng = NextRandom(rng_); in GetSkipCount() 47 rng_ = rng; in GetSkipCount() 87 rng_ = r; in Initialize()
|
/external/angle/third_party/abseil-cpp/absl/base/internal/ |
D | exponential_biased.cc | 46 uint64_t rng = NextRandom(rng_); in GetSkipCount() 47 rng_ = rng; in GetSkipCount() 87 rng_ = r; in Initialize()
|
/external/abseil-cpp/absl/base/internal/ |
D | exponential_biased.cc | 46 uint64_t rng = NextRandom(rng_); in GetSkipCount() 47 rng_ = rng; in GetSkipCount() 87 rng_ = r; in Initialize()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/ |
D | exponential_biased.cc | 46 uint64_t rng = NextRandom(rng_); in GetSkipCount() 47 rng_ = rng; in GetSkipCount() 87 rng_ = r; in Initialize()
|
/external/openscreen/third_party/abseil/src/absl/base/internal/ |
D | exponential_biased.cc | 46 uint64_t rng = NextRandom(rng_); in GetSkipCount() 47 rng_ = rng; in GetSkipCount() 87 rng_ = r; in Initialize()
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/ |
D | regexp_generator.cc | 74 rng_.seed(seed); in GenerateRandom() 153 if (nstk == 1 && random_stop(rng_) == 0) { in GenerateRandomPostfix() 165 if (ops < maxops_ && random_bit(rng_) == 0) { in GenerateRandomPostfix() 166 const std::string& fmt = ops_[random_ops_index(rng_)]; in GenerateRandomPostfix() 179 if (atoms < maxatoms_ && random_bit(rng_) == 0) { in GenerateRandomPostfix() 180 post->push_back(atoms_[random_atoms_index(rng_)]); in GenerateRandomPostfix()
|
D | string_generator.cc | 73 int len = random_len(rng_); in RandomDigits() 76 digits_[i] = random_alphabet_index(rng_); in RandomDigits() 102 rng_.seed(seed); in Random()
|
/external/XNNPACK/test/ |
D | subgraph-tester.h | 40 rng_ = std::mt19937(random_device()); in SubgraphTester() 51 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng_)); in add_tensor() 60 std::shuffle(weights.begin(), weights.end(), rng_); in add_tensor() 160 std::mt19937 rng_; variable
|