Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cyril Moineau
aidge_core
Commits
ed10a0f2
Commit
ed10a0f2
authored
1 year ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
[Rmv] Comment HorizontalTiling recipie and its test
parent
c7d07439
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/aidge/recipies/Recipies.hpp
+4
-4
4 additions, 4 deletions
include/aidge/recipies/Recipies.hpp
unit_tests/recipies/Test_HorizontalTiling.cpp
+57
-50
57 additions, 50 deletions
unit_tests/recipies/Test_HorizontalTiling.cpp
with
61 additions
and
54 deletions
include/aidge/recipies/Recipies.hpp
+
4
−
4
View file @
ed10a0f2
...
...
@@ -68,10 +68,10 @@ void fuseBatchNorm(std::set<std::shared_ptr<Node>> nodes);
*/
void
fuseBatchNorm
(
std
::
shared_ptr
<
GraphView
>
graphView
);
std
::
set
<
std
::
shared_ptr
<
Node
>>
getHorizontalTiling
(
const
std
::
shared_ptr
<
Node
>&
node
,
const
DimIdx_t
axis
,
const
std
::
size_t
nbSlices
);
void
horizontalTiling
(
std
::
shared_ptr
<
Node
>
node
,
DimIdx_t
dim
,
std
::
size_t
nbSlices
);
std
::
set
<
std
::
shared_ptr
<
Node
>>
getHorizontalTiling
(
std
::
set
<
std
::
shared_ptr
<
Node
>>
setOfNodes
,
DimIdx_t
dim
,
std
::
size_t
nbSlices
);
void
horizontalTiling
(
std
::
set
<
std
::
shared_ptr
<
Node
>>
setOfNodes
,
DimIdx_t
dim
,
std
::
size_t
nbSlices
);
//
std::set<std::shared_ptr<Node>> getHorizontalTiling(const std::shared_ptr<Node>& node, const DimIdx_t axis, const std::size_t nbSlices);
//
void horizontalTiling(std::shared_ptr<Node> node, DimIdx_t dim, std::size_t nbSlices);
//
std::set<std::shared_ptr<Node>> getHorizontalTiling(std::set<std::shared_ptr<Node>> setOfNodes, DimIdx_t dim, std::size_t nbSlices);
//
void horizontalTiling(std::set<std::shared_ptr<Node>> setOfNodes, DimIdx_t dim, std::size_t nbSlices);
}
...
...
This diff is collapsed.
Click to expand it.
unit_tests/recipies/Test_HorizontalTiling.cpp
+
57
−
50
View file @
ed10a0f2
/********************************************************************************
* Copyright (c) 2023 CEA-List
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
//
/********************************************************************************
//
* Copyright (c) 2023 CEA-List
//
*
//
* This program and the accompanying materials are made available under the
//
* terms of the Eclipse Public License 2.0 which is available at
//
* http://www.eclipse.org/legal/epl-2.0.
//
*
//
* SPDX-License-Identifier: EPL-2.0
//
*
//
********************************************************************************/
// #include <catch2/catch_test_macros.hpp>
// #include <set>
...
...
@@ -124,31 +124,37 @@
// {
// {
// {{ 15226, 15577, 15928},
// { 16981, 17332, 17683},
// { 18736, 19087, 19438}},
// { 16981, 17332, 17683},
// { 18736, 19087, 19438}},
// {{ 37818, 38898, 39978},
// { 43218, 44298, 45378},
// { 48618, 49698, 50778}},
// { 43218, 44298, 45378},
// { 48618, 49698, 50778}},
// {{ 60426, 62235, 64044},
// { 69471, 71280, 73089},
// { 78516, 80325, 82134}},
// { 69471, 71280, 73089},
// { 78516, 80325, 82134}},
// {{ 83016, 85554, 88092},
// { 95706, 98244, 100782},
// {108396, 110934, 113472}}
//
{ 95706, 98244, 100782},
//
{108396, 110934, 113472}}
// },
// {
// {{ 41551, 41902, 42253},
// { 43306, 43657, 44008},
// { 45061, 45412, 45763}},
// { 43306, 43657, 44008},
// { 45061, 45412, 45763}},
// {{118818, 119898, 120978},
// {124218, 125298, 126378},
// {129618, 130698, 131778}},
// {124218, 125298, 126378},
// {129618, 130698, 131778}},
// {{196101, 197910, 199719},
// {205146, 206955, 208764},
// {214191, 216000, 217809}},
// {205146, 206955, 208764},
// {214191, 216000, 217809}},
// {{273366, 275904, 278442},
// {286056, 288594, 291132},
// {298746, 301284, 303822}}
//
{286056, 288594, 291132},
//
{298746, 301284, 303822}}
// }
// }
// });
...
...
@@ -159,9 +165,7 @@
// std::shared_ptr<GraphView> g;
// g->add(myConv);
// auto tiledConv = horizontalTile({myConv}, 3);
// g->replace({myConv}, {tiledConv});
// horizontalTiling({myConv}, 3);
// SequentialScheduler s(g);
// s->forward();
...
...
@@ -169,25 +173,28 @@
// // myConv->getOperator()->getOutput(0)->print();
// REQUIRE(*(myConv->getOperator()->getOutput(0)) == *myOutput);
// }
// std::shared_ptr<GraphView> g = Sequential({
// Conv(3, 16, {3,3}, "conv1"),
// ReLU("relu1"),
// Conv(16, 32, {1,1}, "conv2"),
// Conv(32, 16, {1,1}, "conv3"),
// Conv(16, 10, {3,3}, "conv4"),
// ReLU("relu2")
// });
// for (auto& individualConv : g->match("Conv")) {
// auto tiledConv = horizontalTiling(individualConv);
// g->replace(individualConv, tiledConv);
// }
// }
// SECTION("Create the GraphView with tiled layers") {
// std::shared_ptr<GraphView> g;
// g->addChild(horizontalTiling(Conv()))
// }
// }
// }
// }
// } // namespace Aidge
\ No newline at end of file
// // std::shared_ptr<GraphView> g = Sequential({
// // Conv(3, 16, {3,3}, "conv1"),
// // ReLU("relu1"),
// // Conv(16, 32, {1,1}, "conv2"),
// // Conv(32, 16, {1,1}, "conv3"),
// // Conv(16, 10, {3,3}, "conv4"),
// // ReLU("relu2")
// // });
// // for (auto& individualConv : g->match("Conv")) {
// // auto tiledConv = horizontalTiling(individualConv);
// // g->replace(individualConv, tiledConv);
// // }
// // }
// // SECTION("Create the GraphView with tiled layers") {
// // std::shared_ptr<GraphView> g;
// // g->addChild(horizontalTiling(Conv()))
// // }
// // }
// // } // namespace Aidge
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment