MCPcopy Create free account
hub / github.com/Samsung/ONE / init

Method init

compiler/circle-eval-diff/src/MetricPrinter.test.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
102protected:
103 luci::CircleAdd *_add = nullptr;

Callers 1

TESTFunction · 0.45

Calls 8

push_backMethod · 0.80
create_const_nodeFunction · 0.70
nodesMethod · 0.45
yMethod · 0.45
dtypeMethod · 0.45
shapeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected