Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cpu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Eclipse Projects
aidge
aidge_backend_cpu
Merge requests
!18
The source project of this merge request has been removed.
add sqrt operator
Merged
add sqrt operator
(removed):sqrt_op
into
master
Overview
1
Commits
4
Pipelines
0
Changes
5
Merged
Houssem ROUIS
requested to merge
(removed):sqrt_op
into
master
1 year ago
Overview
1
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Compare
master
version 3
c321370c
1 year ago
version 2
987aeea6
1 year ago
version 1
c506f095
1 year ago
master (base)
and
latest version
latest version
0e7ba76d
4 commits,
1 year ago
version 3
c321370c
3 commits,
1 year ago
version 2
987aeea6
2 commits,
1 year ago
version 1
c506f095
1 commit,
1 year ago
5 files
+
257
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
include/aidge/backend/cpu/operator/SqrtImpl.hpp
0 → 100644
+
50
−
0
Options
/********************************************************************************
* 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
*
********************************************************************************/
#ifndef AIDGE_CPU_OPERATOR_SQRTIMPL_H_
#define AIDGE_CPU_OPERATOR_SQRTIMPL_H_
#include
"aidge/backend/OperatorImpl.hpp"
#include
"aidge/operator/Sqrt.hpp"
#include
"aidge/utils/Registrar.hpp"
#include
"aidge/utils/Types.h"
#include
<memory>
#include
<vector>
namespace
Aidge
{
// class Sqrt_Op;
// compute kernel registry for forward and backward
class
SqrtImplForward_cpu
:
public
Registrable
<
SqrtImplForward_cpu
,
std
::
tuple
<
DataType
,
DataType
>
,
void
(
const
std
::
size_t
,
const
void
*
,
void
*
)
>
{
};
class
SqrtImplBackward_cpu
:
public
Registrable
<
SqrtImplBackward_cpu
,
std
::
tuple
<
DataType
,
DataType
>
,
void
(
const
std
::
size_t
,
const
void
*
,
void
*
)
>
{
};
class
SqrtImpl_cpu
:
public
OperatorImpl
{
public:
SqrtImpl_cpu
(
const
Sqrt_Op
&
op
)
:
OperatorImpl
(
op
)
{}
static
std
::
unique_ptr
<
SqrtImpl_cpu
>
create
(
const
Sqrt_Op
&
op
)
{
return
std
::
make_unique
<
SqrtImpl_cpu
>
(
op
);
}
NbElts_t
getNbRequiredProtected
(
const
IOIndex_t
inputIdx
)
const
override
final
;
void
forward
()
override
;
};
namespace
{
static
Registrar
<
Sqrt_Op
>
registrarSqrtImpl_cpu
(
"cpu"
,
Aidge
::
SqrtImpl_cpu
::
create
);
}
}
// namespace Aidge
#endif
/* AIDGE_CPU_OPERATOR_SQRTIMPL_H_ */
Loading