| 85 | AddGraphlet() = default; |
| 86 | |
| 87 | void init(loco::Graph *g, float addition) |
| 88 | { |
| 89 | std::vector<float> addition_val; |
| 90 | for (uint32_t i = 0; i < 16; i++) |
| 91 | addition_val.push_back(addition); |
| 92 | _add_c = create_const_node(g, loco::DataType::FLOAT32, {1, 16}, addition_val); |
| 93 | |
| 94 | _add = g->nodes()->create<luci::CircleAdd>(); |
| 95 | _add->y(_add_c); |
| 96 | _add->fusedActivationFunction(luci::FusedActFunc::NONE); |
| 97 | _add->dtype(loco::DataType::FLOAT32); |
| 98 | _add->shape({1, 16}); |
| 99 | _add->name("add"); |
| 100 | } |
| 101 | |
| 102 | protected: |
| 103 | luci::CircleAdd *_add = nullptr; |
no test coverage detected