Home
last modified time | relevance | path

Searched refs:RandomOperand (Results 1 – 9 of 9) sorted by relevance

/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DOperationSignatureUtils.h95 inline void uniform(T low, T up, RandomOperand* op) {
101 inline void uniform<bool8>(bool8, bool8, RandomOperand* op) {
109 inline void uniformFinalizer(RandomOperand* op) {
194 inline void setSameQuantization(const std::shared_ptr<RandomOperand>& to,
195 const std::shared_ptr<RandomOperand>& from) {
201 inline void setFreeDimensions(const std::shared_ptr<RandomOperand>& op, uint32_t rank) {
228 inline void defaultOperandConstructor(Type dataType, uint32_t, RandomOperand* op) {
257 RandomOperand* op) { defaultOperandConstructor((opType), rank, op); }, \
269 [](Type dataType, uint32_t rank, RandomOperand* op) { \
296 .type = RandomOperandType::CONST, .constructor = [](Type, uint32_t, RandomOperand* op) { \
[all …]
DBoundingBox.cpp23 static void roiTensorConstructor(Type dataType, uint32_t, RandomOperand* op) { in roiTensorConstructor()
67 inline void fillRoiTensor(uint32_t numRois, T maxH, T maxW, RandomOperand* op) { in fillRoiTensor()
DReshape.cpp253 .type = RandomOperandType::CONST, .constructor = [](Type, uint32_t, RandomOperand* op) { in __anon0a84149d0102()
310 .constructor = [](Type dataType, uint32_t, RandomOperand* op) { in __anon0a84149d0202()
DSelection.cpp85 .type = RandomOperandType::OUTPUT, .constructor = [](Type, uint32_t, RandomOperand* op) { in __anonbfbd3ebb0102()
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGenerator.h39 struct RandomOperand { struct
50 std::function<void(RandomOperand*)> finalizer = nullptr; argument
65 RandomOperand(const OperandSignature& op, Type dataType, uint32_t rank); argument
95 bool createEdgeIfValid(const RandomOperand& other) const; argument
105 std::vector<std::shared_ptr<RandomOperand>> inputs;
106 std::vector<std::shared_ptr<RandomOperand>> outputs;
176 std::vector<std::shared_ptr<RandomOperand>> mOperands;
DRandomGraphGenerator.cpp39 RandomOperand::RandomOperand(const OperandSignature& operand, Type dataType, uint32_t rank) in RandomOperand() function in android::nn::fuzzing_test::RandomOperand
45 std::vector<uint32_t> RandomOperand::getDimensions() const { in getDimensions()
52 bool RandomOperand::createEdgeIfValid(const RandomOperand& other) const { in createEdgeIfValid()
60 uint32_t RandomOperand::getNumberOfElements() const { in getNumberOfElements()
66 size_t RandomOperand::getBufferSize() const { in getBufferSize()
81 inputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation()
84 outputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation()
143 static bool asConstant(const std::shared_ptr<RandomOperand>& operand, float prob = 0.5f) { in asConstant()
159 std::set<std::shared_ptr<RandomOperand>> seen; in generateValue()
160 auto fillOperands = [&seen, this](const std::vector<std::shared_ptr<RandomOperand>>& ops) { in generateValue()
[all …]
DOperationManager.h42 std::function<void(Type, uint32_t, RandomOperand*)> constructor = nullptr;
46 std::function<void(RandomOperand*)> finalizer = nullptr;
DRandomGraphGeneratorUtils.cpp56 const std::vector<std::shared_ptr<RandomOperand>>& operands) { in dump()
131 void SpecWriter::dump(const std::shared_ptr<RandomOperand>& op) { in dump()
151 auto getOperandStr = [](std::shared_ptr<RandomOperand> op) { in dump()
DRandomGraphGeneratorUtils.h353 inline std::string toString<RandomOperand>(const RandomOperand& op) {
380 const std::vector<std::shared_ptr<RandomOperand>>& operands);
385 void dump(const std::shared_ptr<RandomOperand>& op);