Skip to content
Snippets Groups Projects
Commit 481818dc authored by Jerome Hue's avatar Jerome Hue
Browse files

chore: Comply with order of includes guidelines

parent 22351fa7
No related branches found
No related tags found
1 merge request!114Heaviside implementation
Pipeline #64306 passed
/******************************************************************************** /********************************************************************************
* Copyright (c) 2024 CEA-List * Copyright (c) 2025 CEA-List
* *
* This program and the accompanying materials are made available under the * This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at * terms of the Eclipse Public License 2.0 which is available at
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
* *
********************************************************************************/ ********************************************************************************/
#ifndef AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_H_
#define AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_H_
#include <cstddef> // std::size_t #include <cstddef> // std::size_t
#include "aidge/backend/cpu/operator/OperatorImpl.hpp" #include "aidge/backend/cpu/operator/OperatorImpl.hpp"
...@@ -16,9 +19,6 @@ ...@@ -16,9 +19,6 @@
#include "aidge/utils/Registrar.hpp" #include "aidge/utils/Registrar.hpp"
#include "aidge/utils/future_std/span.hpp" #include "aidge/utils/future_std/span.hpp"
#ifndef AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_H_
#define AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_H_
namespace Aidge { namespace Aidge {
using HeavisideImplCpu = using HeavisideImplCpu =
OperatorImpl_cpu<Heaviside_Op, OperatorImpl_cpu<Heaviside_Op,
......
/******************************************************************************** /********************************************************************************
* Copyright (c) 2024 CEA-List * Copyright (c) 2025 CEA-List
* *
* This program and the accompanying materials are made available under the * This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at * terms of the Eclipse Public License 2.0 which is available at
...@@ -9,14 +9,17 @@ ...@@ -9,14 +9,17 @@
* *
********************************************************************************/ ********************************************************************************/
#ifndef AIDGE_CPU_OPERATOR_LEAKYRELUIMPL_KERNELS_H_ #ifndef AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_KERNELS_H_
#define AIDGE_CPU_OPERATOR_LEAKYRELUIMPL_KERNELS_H_ #define AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_KERNELS_H_
#include "aidge/utils/Registrar.hpp"
#include <cstddef> // std::size_t #include <cstddef> // std::size_t
#include "aidge/backend/cpu/operator/HeavisideImpl.hpp" #include "aidge/backend/cpu/operator/HeavisideImpl.hpp"
#include "aidge/utils/ErrorHandling.hpp" #include "aidge/utils/ErrorHandling.hpp"
namespace Aidge { namespace Aidge {
template <class I, class O> template <class I, class O>
...@@ -40,4 +43,4 @@ REGISTRAR(HeavisideImplCpu, ...@@ -40,4 +43,4 @@ REGISTRAR(HeavisideImplCpu,
nullptr}); nullptr});
} // namespace Aidge } // namespace Aidge
#endif #endif // AIDGE_CPU_OPERATOR_HEAVISIDEIMPL_KERNELS_H__H_
/******************************************************************************** /********************************************************************************
* Copyright (c) 2024 CEA-List * Copyright (c) 2025 CEA-List
* *
* This program and the accompanying materials are made available under the * This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at * terms of the Eclipse Public License 2.0 which is available at
...@@ -10,12 +10,13 @@ ...@@ -10,12 +10,13 @@
********************************************************************************/ ********************************************************************************/
#include "aidge/backend/cpu/operator/HeavisideImpl.hpp" #include "aidge/backend/cpu/operator/HeavisideImpl.hpp"
#include "aidge/backend/cpu/operator/HeavisideImpl_kernels.hpp"
#include <aidge/backend/cpu/data/GetCPUPtr.h>
#include <aidge/operator/Heaviside.hpp>
#include <aidge/utils/ErrorHandling.hpp>
#include <stdexcept> #include <stdexcept>
#include "aidge/backend/cpu/operator/HeavisideImpl_kernels.hpp"
#include "aidge/backend/cpu/data/GetCPUPtr.h"
#include "aidge/utils/ErrorHandling.hpp"
template <> void Aidge::HeavisideImplCpu::forward() { template <> void Aidge::HeavisideImplCpu::forward() {
const Heaviside_Op &op_ = dynamic_cast<const Heaviside_Op &>(mOp); const Heaviside_Op &op_ = dynamic_cast<const Heaviside_Op &>(mOp);
std::shared_ptr<Tensor> input0 = op_.getInput(0); std::shared_ptr<Tensor> input0 = op_.getInput(0);
......
#include <aidge/operator/Heaviside.hpp> /********************************************************************************
#include <aidge/utils/TensorUtils.hpp> * Copyright (c) 2025 CEA-List
#include <catch2/catch_test_macros.hpp> *
* 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 "aidge/backend/cpu/operator/HeavisideImpl_kernels.hpp"
#include <memory> #include <memory>
#include <cstdlib> #include <cstdlib>
#include <random> #include <random>
#include <catch2/catch_test_macros.hpp>
#include "aidge/data/Tensor.hpp" #include "aidge/data/Tensor.hpp"
#include "aidge/backend/cpu/operator/HeavisideImpl.hpp"
#include "aidge/graph/Node.hpp" #include "aidge/graph/Node.hpp"
#include "aidge/utils/TensorUtils.hpp"
namespace Aidge namespace Aidge
{ {
......
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