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
dd23ae05
Commit
dd23ae05
authored
1 year ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
[Rmv] fuseBatchNorm test from core as it needs an implementation
parent
74a582a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unit_tests/recipies/Test_FuseBatchNorm.cpp
+0
-70
0 additions, 70 deletions
unit_tests/recipies/Test_FuseBatchNorm.cpp
with
0 additions
and
70 deletions
unit_tests/recipies/Test_FuseBatchNorm.cpp
deleted
100644 → 0
+
0
−
70
View file @
74a582a1
/********************************************************************************
* 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>
//#include "aidge/backend/cpu/operator/BatchNormImpl.hpp"
//#include "aidge/backend/cpu/operator/ConvImpl.hpp"
#include "aidge/operator/Conv.hpp"
#include "aidge/operator/GenericOperator.hpp"
#include "aidge/operator/Producer.hpp"
#include "aidge/graph/OpArgs.hpp"
#include "aidge/operator/BatchNorm.hpp"
#include "aidge/utils/Recipies.hpp"
//#include "aidge/backend/TensorImpl.hpp"
//#include "aidge/backend/cpu.hpp"
//#include "aidge/"
#include <cstddef>
namespace Aidge {
TEST_CASE("[FuseBatchNorm] conv") {
auto g1 = Sequential({
Producer({16, 3, 224, 224}, "dataProvider"),
Conv(3, 32, {3, 3}, "conv1"),
BatchNorm<2>()
});
g1->setDataType(DataType::Float32);
g1->setBackend("cpu");
g1->forwardDims();
// std::set<std::string> availableBackends = Tensor::getAvailableBackends();
// if (availableBackends.find("cpu") != availableBackends.end()){
// g1->setBackend("cpu");
// newTensor->getImpl()->setRawPtr(static_cast<T*>(info.ptr));
// }else{
// printf("Warning : Could not use aidge_cpu backend, verify you have `import aidge_cpu`\n");
// }
fuseBatchNorm(g1);
SECTION("Check resulting nodes") {
// REQUIRE(g1->getNodes().size() == 2);
// REQUIRE(g2->getNode("conv1")->getOperator()->type() == "MaxPooling");
// REQUIRE(g2->getNode("conv1")->getOperator()->getRawOutput(0) == g2->getNode("conv2")->getOperator()->getRawInput(0));
// REQUIRE(g2->getNode("conv2")->getOperator()->type() == "MaxPooling");
// REQUIRE(g2->getNode("conv2")->getOperator()->getRawOutput(0) == g2->getNode("conv3")->getOperator()->getRawInput(0));
// REQUIRE(g2->getNode("conv3")->getOperator()->type() == "MaxPooling");
}
}
}
*/
\ 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