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> /********************************************************************************
* Copyright (c) 2023 CEA-List
// #include "aidge/data/Tensor.hpp" *
// #include "aidge/backend/TensorImpl.hpp" * This program and the accompanying materials are made available under the
// #include "aidge/backend/cpu.hpp" * terms of the Eclipse Public License 2.0 which is available at
// #include "aidge/operator/Conv.hpp" * http://www.eclipse.org/legal/epl-2.0.
// #include "aidge/operator/Scaling.hpp" *
// #include "aidge/operator/GenericOperator.hpp" * SPDX-License-Identifier: EPL-2.0
// #include "aidge/graph/GraphView.hpp" *
// #include "aidge/QuantPTQ.hpp" ********************************************************************************/
// #include "aidge/scheduler/Scheduler.hpp"
// #include "aidge/hook/OutputRange.hpp" #include <catch2/catch_test_macros.hpp>
// #include "aidge/operator/Producer.hpp"
TEST_CASE("[tmp] basic test") {
// #include <unordered_map> REQUIRE(true == true);
}
// using namespace Aidge;
// //using namespace Aidge_HELPER;
// TEST_CASE("[aidge_module_template/ref_cpp/quantization] PTQ : Quantize Graph") { // TEST_CASE("[aidge_module_template/ref_cpp/quantization] PTQ : Quantize Graph") {
...@@ -79,7 +77,7 @@ ...@@ -79,7 +77,7 @@
// std::shared_ptr<Tensor> myInput = // std::shared_ptr<Tensor> myInput =
// std::make_shared<Tensor>( // std::make_shared<Tensor>(
// Array4D<float,2,3,5,5> { // Array4D<float,2,3,5,5> {
// { // {
// { // {
// {{ 0., 1., 2., 3., 4.}, // {{ 0., 1., 2., 3., 4.},
...@@ -124,7 +122,7 @@ ...@@ -124,7 +122,7 @@
// ); // );
// auto dataProvider = Producer(myInput, "dataProvider"); // auto dataProvider = Producer(myInput, "dataProvider");
// Tensor myOutput = Array4D<float,2,4,3,3> { // Tensor myOutput = Array4D<float,2,4,3,3> {
// { // {
// { // {
// {{ 15226., 15577., 15928.}, // {{ 15226., 15577., 15928.},
...@@ -188,9 +186,9 @@ ...@@ -188,9 +186,9 @@
// "%f" // "%f"
// "\n", // "\n",
// max_output_conv); // max_output_conv);
// } // }
// float max_output_relu = std::static_pointer_cast<OutputRange>(myReLU1->getOperator()->getHook("output_range"))->getOutput(0); // float max_output_relu = std::static_pointer_cast<OutputRange>(myReLU1->getOperator()->getHook("output_range"))->getOutput(0);
// if(verbose) { // if(verbose) {
// printf("[hook] OutputRange(forward) :: ReLU output max: " // printf("[hook] OutputRange(forward) :: ReLU output max: "
...@@ -222,10 +220,10 @@ ...@@ -222,10 +220,10 @@
// "\n", // "\n",
// (nodePtr->type()).c_str(), (nodePtr->name()).c_str()); // (nodePtr->type()).c_str(), (nodePtr->name()).c_str());
// } // }
// } // }
// SequentialScheduler scheduler_v2(g1); // SequentialScheduler scheduler_v2(g1);
// scheduler_v2.forward(); // scheduler_v2.forward();
// scheduler_v2.generateScheduling(false); // scheduler_v2.generateScheduling(false);
// std::vector<std::shared_ptr<Node>> ordered_graph_view_v2 = scheduler_v2.getStaticScheduling(); // std::vector<std::shared_ptr<Node>> ordered_graph_view_v2 = scheduler_v2.getStaticScheduling();
...@@ -242,7 +240,7 @@ ...@@ -242,7 +240,7 @@
// "\n", // "\n",
// (nodePtr->type()).c_str(), (nodePtr->name()).c_str()); // (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