diff --git a/unit_tests/Test_QuantPTQ.cpp b/unit_tests/Test_QuantPTQ.cpp index 36377e84e27e9de9cc28de323cfba5a44cb80904..e7211ce4092f789c8c6263671ad236b97934ffbb 100644 --- a/unit_tests/Test_QuantPTQ.cpp +++ b/unit_tests/Test_QuantPTQ.cpp @@ -1,21 +1,19 @@ -// #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