Skip to content
Snippets Groups Projects
Commit 2a76c445 authored by Maxence Naud's avatar Maxence Naud
Browse files

[Upd] array in AddImpl test to prevent clang-format from changing their format

parent a1dee46b
No related branches found
No related tags found
No related merge requests found
......@@ -19,25 +19,25 @@
using namespace Aidge;
TEST_CASE("[cpu/operator] Add(forward)") {
std::shared_ptr<Tensor> input1 = std::make_shared<Tensor>(Array4D<int,3,3,3,2> {
{
{
{{20, 47},{21, 48},{22, 49}},
{{23, 50},{24, 51},{25, 52}},
{{26, 53},{27, 54},{28, 55}}
},
{
{{29, 56},{30, 57},{31, 58}},
{{32, 59},{33, 60},{34, 61}},
{{35, 62},{36, 63},{37, 64}}
},
{
{{38, 65},{39, 66},{40, 67}},
{{41, 68},{42, 69},{43, 70}},
{{44, 71},{45, 72},{46, 73}}
}
}
});
std::shared_ptr<Tensor> input1 = std::make_shared<Tensor>(Array4D<int,3,3,3,2> {
{ //
{ //
{{20, 47},{21, 48},{22, 49}}, //
{{23, 50},{24, 51},{25, 52}}, //
{{26, 53},{27, 54},{28, 55}} //
}, //
{ //
{{29, 56},{30, 57},{31, 58}}, //
{{32, 59},{33, 60},{34, 61}}, //
{{35, 62},{36, 63},{37, 64}} //
}, //
{ //
{{38, 65},{39, 66},{40, 67}}, //
{{41, 68},{42, 69},{43, 70}}, //
{{44, 71},{45, 72},{46, 73}} //
} //
} //
}); //
SECTION("One input") {
std::shared_ptr<Node> myAdd = Add<1>();
......@@ -51,7 +51,7 @@ TEST_CASE("[cpu/operator] Add(forward)") {
}
SECTION("Two inputs") {
std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> {
std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> {
{
{
{{40, 94},{42, 96},{44, 98}},
......@@ -81,9 +81,9 @@ TEST_CASE("[cpu/operator] Add(forward)") {
REQUIRE(*std::static_pointer_cast<Tensor>(myAdd->getOperator()->getOutput(0)) == *expectedOutput);
}
SECTION("Three inputs") {
std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> {
std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> {
{
{
{{ 60, 141},{ 63, 144},{ 66, 147}},
......
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