* [locomotiv] Use array instead of set for test Session
To avoid undefined behavior, this commit use array instead of set to
make Session from iterator range.
Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Use aggregate initializer to be simple
#include <nncc/core/ADT/tensor/Buffer.h>
#include <nncc/core/ADT/tensor/LexicalLayout.h>
-#include <set>
+#include <array>
#include <gtest/gtest.h>
relu->input(constgen);
push->from(relu);
- std::set<loco::Node *> custom_outputs;
- custom_outputs.insert(constgen);
- custom_outputs.insert(push);
+ std::array<loco::Node *, 2> custom_outputs = {constgen, push};
// Make Session by range
locomotiv::Session s(g.get(), custom_outputs.begin(), custom_outputs.end());