Skip to content
Snippets Groups Projects
Commit 064955b6 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Minor fixes

parent dc2d729f
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!143Multiple refactors
......@@ -112,9 +112,6 @@ public:
}
};
template <DimIdx_t DIM>
const std::string Pad_Op<DIM>::Type = "Pad";
template <std::array<DimSize_t, 1>::size_type DIM>
inline std::shared_ptr<Node> Pad(const std::array<DimSize_t, 2*DIM> &beginEndTuples,
const std::string& name = "",
......
......@@ -10,6 +10,10 @@
********************************************************************************/
#include "aidge/operator/Pad.hpp"
#include "aidge/utils/Types.h"
template <Aidge::DimIdx_t DIM>
const std::string Aidge::Pad_Op<DIM>::Type = "Pad";
template class Aidge::Pad_Op<1>;
template class Aidge::Pad_Op<2>;
......@@ -129,6 +129,6 @@ TEST_CASE("[core/operators] MetaOperator", "[Operator][MetaOperator]") {
REQUIRE(g->rootNode() == pop);
g->save("lstm_expanded", true, true);
REQUIRE(g->getNodes().size() == 41);
REQUIRE(g->getNodes().size() == 33);
}
}
......@@ -27,8 +27,8 @@ namespace Aidge {
TEST_CASE("[cpu/recipies] RemoveFlatten", "[RemoveFlatten][recipies]") {
std::shared_ptr<Node> flatten =
GenericOperator("Flatten", 1, 0, 1, "myFlatten");
std::shared_ptr<Node> fc0 = FC(10, 10, "FC_1");
std::shared_ptr<Node> fc1 = FC(10, 10, "FC_2");
std::shared_ptr<Node> fc0 = FC(10, 10, false, "FC_1");
std::shared_ptr<Node> fc1 = FC(10, 10, false, "FC_2");
std::shared_ptr<Node> prod = Producer(std::array<DimSize_t, 10>(), "myProd");
SECTION("flatten last layer : nothing removed because pattern searched is "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment