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

ADD: basic test

parent 6d7131c1
No related branches found
No related tags found
1 merge request!39UPD: version 0.3.0 -> 0.3.1
// #include <catch2/catch_test_macros.hpp>
// #include "aidge/data/Tensor.hpp"
// #include "aidge/backend/TensorImpl.hpp"
// #include "aidge/backend/cpu.hpp"
// #include "aidge/operator/Conv.hpp"
// #include "aidge/operator/Scaling.hpp"
// #include "aidge/operator/GenericOperator.hpp"
// #include "aidge/graph/GraphView.hpp"
// #include "aidge/QuantPTQ.hpp"
// #include "aidge/scheduler/Scheduler.hpp"
// #include "aidge/hook/OutputRange.hpp"
// #include "aidge/operator/Producer.hpp"
// #include <unordered_map>
// using namespace Aidge;
// //using namespace Aidge_HELPER;
/********************************************************************************
* 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>
TEST_CASE("[tmp] basic test") {
REQUIRE(true == true);
}
// TEST_CASE("[aidge_module_template/ref_cpp/quantization] PTQ : Quantize Graph") {
......@@ -79,7 +77,7 @@
// std::shared_ptr<Tensor> myInput =
// std::make_shared<Tensor>(
// Array4D<float,2,3,5,5> {
// Array4D<float,2,3,5,5> {
// {
// {
// {{ 0., 1., 2., 3., 4.},
......@@ -124,7 +122,7 @@
// );
// auto dataProvider = Producer(myInput, "dataProvider");
// Tensor myOutput = Array4D<float,2,4,3,3> {
// Tensor myOutput = Array4D<float,2,4,3,3> {
// {
// {
// {{ 15226., 15577., 15928.},
......@@ -188,9 +186,9 @@
// "%f"
// "\n",
// max_output_conv);
// }
// float max_output_relu = std::static_pointer_cast<OutputRange>(myReLU1->getOperator()->getHook("output_range"))->getOutput(0);
// if(verbose) {
// printf("[hook] OutputRange(forward) :: ReLU output max: "
......@@ -222,10 +220,10 @@
// "\n",
// (nodePtr->type()).c_str(), (nodePtr->name()).c_str());
// }
// }
// }
// SequentialScheduler scheduler_v2(g1);
// scheduler_v2.forward();
// scheduler_v2.generateScheduling(false);
// std::vector<std::shared_ptr<Node>> ordered_graph_view_v2 = scheduler_v2.getStaticScheduling();
......@@ -242,7 +240,7 @@
// "\n",
// (nodePtr->type()).c_str(), (nodePtr->name()).c_str());
// }
// }
// }
// }
\ No newline at end of file
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