Searched refs:getUniform (Results 1 – 8 of 8) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | OperationSignatureUtils.h | 112 return getUniform(low, up); 170 return getUniform(-rank, rank - 1); 255 op->outputs[0]->scale = getUniform(biasScale, biasScale * 5); 275 op->scale = getUniform<float>(0.1, 2.0); 276 op->zeroPoint = getUniform<int32_t>(0, 255); 278 op->scale = getUniform<float>(0.1, 2.0); 279 op->zeroPoint = getUniform<int32_t>(-128, 127); 281 op->scale = getUniform<float>(0.1, 2.0); 284 op->scale = getUniform<float>(0.1, 2.0); 285 op->zeroPoint = getUniform<int32_t>(0, 65535); [all …]
|
D | Selection.cpp | 43 op->inputs[0]->value<int32_t>(i) = getUniform<int32_t>(0, dimValue - 1); in embeddingLookupFinalizer() 85 val += getUniform<int32_t>(1, 2); in hashtableLookupFinalizer() 90 op->inputs[0]->value<int32_t>(i) = getUniform<int32_t>(0, val); in hashtableLookupFinalizer() 122 uint32_t indRank = getUniform<uint32_t>(1, 5); in gatherConstructor() 145 op->inputs[2]->value<int32_t>(i) = getUniform<int32_t>(0, dimValue - 1); in gatherFinalizer() 254 begin[i] = getUniform<int32_t>(0, inputSize - outputSize); in sliceFinalizer() 293 int32_t stride = getUniform<int32_t>(1, 3); in stridedSliceConstructor() 327 begin[i] = getUniform<int32_t>(0, maxStart); in stridedSliceFinalizer() 331 end[i] = getUniform<int32_t>(minEnd, maxEnd); in stridedSliceFinalizer() 339 if (beginMask[i]) begin[i] = getUniform<int32_t>(-inputSize, inputSize - 1); in stridedSliceFinalizer() [all …]
|
D | Reshape.cpp | 266 for (int i = 0; i < 4; i++) op->value<int32_t>(i) = getUniform<int32_t>(0, 10); in __anon5cabe3aa0102() 312 int32_t left = getUniform<int32_t>(0, 5), right = getUniform<int32_t>(0, 5); in padConstructor() 326 op->setScalarValue<float>(getUniform<float>(-10.0f, 10.0f)); in __anon5cabe3aa0202() 330 op->setScalarValue<_Float16>(getUniform<_Float16>(-10.0f, 10.0f)); in __anon5cabe3aa0202() 334 op->setScalarValue<int32_t>(getUniform<int32_t>(0, 255)); in __anon5cabe3aa0202() 338 op->setScalarValue<int32_t>(getUniform<int32_t>(-128, 127)); in __anon5cabe3aa0202() 454 uint32_t numAxis = getUniform<int32_t>(1, 10); in squeezeConstructor() 459 int32_t dim = getUniform<int32_t>(0, rank - 1); in squeezeConstructor() 557 int32_t multiple = getUniform<int32_t>(1, 5); in tileConstructor()
|
D | BoundingBox.cpp | 79 T low = getUniform<T>(0, maxW); in fillRoiTensor() 81 op->value<T>(i * 4 + 2) = getUniform<T>(low, maxW); in fillRoiTensor() 82 low = getUniform<T>(0, maxH); in fillRoiTensor() 84 op->value<T>(i * 4 + 3) = getUniform<T>(low, maxH); in fillRoiTensor() 119 for (uint32_t i = 0; i < numRois; i++) batchIndex[i] = getUniform<int32_t>(0, batch - 1); in roiFinalizer()
|
D | Broadcast.cpp | 26 const uint32_t rank2 = getUniform(1u, rank), rankDiff = rank - rank2; in broadcastOpConstructor() 58 op->outputs[0]->scale = getUniform(minScale, minScale * 5); in broadcastOpConstructor()
|
D | Reduce.cpp | 30 uint32_t numAxis = getUniform<int32_t>(1, 10); in reduceOpConstructor()
|
D | ConcatSplit.cpp | 31 int32_t axis = getUniform<int32_t>(0, rank - 1); in concatConstructor()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.h | 274 inline std::enable_if_t<nnIsFloat<T>, T> getUniform(T lower, T upper) { in getUniform() function 292 inline std::enable_if_t<std::is_integral_v<T>, T> getUniform(T lower, T upper) { in getUniform() function
|