Searched refs:RandomOperand (Results 1 – 10 of 10) sorted by relevance
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Elementwise.cpp | 29 op->outputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 32 op->outputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 35 op->outputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 38 op->outputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 41 op->inputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 44 op->inputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 45 op->outputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 48 op->inputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 49 op->outputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor()
|
D | OperationSignatureUtils.h | 105 if (valueProperties & RandomOperand::NON_NEGATIVE) { 109 if (valueProperties & RandomOperand::NON_ZERO) { 121 inline void uniform(T low, T up, T zeroPoint, RandomOperand* op) { 131 inline void uniformFinalizer(RandomOperand* op) { 228 inline void setSameQuantization(const std::shared_ptr<RandomOperand>& to, 229 const std::shared_ptr<RandomOperand>& from) { 235 inline void setFreeDimensions(const std::shared_ptr<RandomOperand>& op, uint32_t rank) { 262 inline void defaultOperandConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) { 285 inline void defaultScalarOperandConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) { 331 RandomOperand* op) { defaultOperandConstructor((opType), rank, op); }, \ [all …]
|
D | Broadcast.cpp | 75 op->inputs[1]->valueProperties = RandomOperand::NON_ZERO; in broadcastOpConstructor() 79 op->inputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in broadcastOpConstructor()
|
D | BoundingBox.cpp | 28 static void roiTensorConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) { in roiTensorConstructor() 75 inline void fillRoiTensor(uint32_t numRois, T maxH, T maxW, RandomOperand* op) { in fillRoiTensor()
|
D | Reshape.cpp | 262 .constructor = [](TestOperandType, uint32_t, RandomOperand* op) { in __anon0a84149d0102() 322 .constructor = [](TestOperandType dataType, uint32_t, RandomOperand* op) { in __anon0a84149d0202()
|
D | Selection.cpp | 97 .constructor = [](TestOperandType, uint32_t, RandomOperand* op) { in __anonbfbd3ebb0102()
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGenerator.h | 40 struct RandomOperand { struct 61 std::function<void(RandomOperand*)> finalizer = nullptr; argument 76 RandomOperand(const OperandSignature& op, test_helper::TestOperandType dataType, uint32_t rank); argument 106 bool createEdgeIfValid(const RandomOperand& other) const; argument 116 std::vector<std::shared_ptr<RandomOperand>> inputs; 117 std::vector<std::shared_ptr<RandomOperand>> outputs; 144 std::vector<std::shared_ptr<RandomOperand>> mOperands;
|
D | RandomGraphGenerator.cpp | 44 RandomOperand::RandomOperand(const OperandSignature& operand, TestOperandType dataType, in RandomOperand() function in android::nn::fuzzing_test::RandomOperand 51 std::vector<uint32_t> RandomOperand::getDimensions() const { in getDimensions() 62 bool RandomOperand::createEdgeIfValid(const RandomOperand& other) const { in createEdgeIfValid() 71 uint32_t RandomOperand::getNumberOfElements() const { in getNumberOfElements() 77 size_t RandomOperand::getBufferSize() const { in getBufferSize() 92 inputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation() 95 outputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation() 154 static bool asConstant(const std::shared_ptr<RandomOperand>& operand, float prob = 0.5f) { in asConstant() 170 std::set<std::shared_ptr<RandomOperand>> seen; in generateValue() 171 auto fillOperands = [&seen, this](const std::vector<std::shared_ptr<RandomOperand>>& ops) { in generateValue() [all …]
|
D | OperationManager.h | 41 std::function<void(test_helper::TestOperandType, uint32_t, RandomOperand*)> constructor = 46 std::function<void(RandomOperand*)> finalizer = nullptr;
|
D | RandomGraphGeneratorUtils.h | 253 inline std::string toString<RandomOperand>(const RandomOperand& op) {
|