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
!88
Added Bitshift Operator
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added Bitshift Operator
noamzerah/aidge_backend_cpu:feat_operator_bitshift
into
dev
Overview
15
Commits
11
Pipelines
16
Changes
5
Merged
Noam Zerah
requested to merge
noamzerah/aidge_backend_cpu:feat_operator_bitshift
into
dev
6 months ago
Overview
12
Commits
11
Pipelines
16
Changes
5
Expand
Context
See :
aidge_quantization#35 (closed)
0
0
Merge request reports
Compare
dev
version 6
329ddc3c
6 months ago
version 5
1eb1cec3
6 months ago
version 4
a03ca6a8
6 months ago
version 3
28ffedb7
6 months ago
version 2
30094d2c
6 months ago
version 1
0c0e59ec
6 months ago
dev (base)
and
version 1
latest version
1fdb9c99
11 commits,
6 months ago
version 6
329ddc3c
10 commits,
6 months ago
version 5
1eb1cec3
9 commits,
6 months ago
version 4
a03ca6a8
8 commits,
6 months ago
version 3
28ffedb7
7 commits,
6 months ago
version 2
30094d2c
3 commits,
6 months ago
version 1
0c0e59ec
2 commits,
6 months ago
5 files
+
428
−
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/BitShiftImpl.hpp
0 → 100644
+
51
−
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_BITSHIFTIMPL_H_
#define AIDGE_CPU_OPERATOR_BITSHIFTIMPL_H_
#include
"aidge/backend/OperatorImpl.hpp"
#include
"aidge/operator/BitShift.hpp"
#include
"aidge/utils/Registrar.hpp"
#include
"aidge/utils/Types.h"
#include
"aidge/backend/cpu/data/GetCPUPtr.h"
#include
<memory>
#include
<vector>
namespace
Aidge
{
// class BitShift_Op;
// compute kernel registry for forward and backward
class
BitShiftImplForward_cpu
:
public
Registrable
<
BitShiftImplForward_cpu
,
std
::
tuple
<
DataType
,
DataType
,
DataType
>
,
void
(
const
Direction
,
const
std
::
vector
<
std
::
size_t
>&
,
const
std
::
vector
<
std
::
size_t
>&
,
const
std
::
vector
<
std
::
size_t
>&
,
const
void
*
,
const
void
*
,
void
*
)
>
{
};
class
BitShiftImplBackward_cpu
:
public
Registrable
<
BitShiftImplBackward_cpu
,
std
::
tuple
<
DataType
,
DataType
,
DataType
>
,
void
(
const
Direction
,
const
std
::
vector
<
std
::
size_t
>&
,
const
std
::
vector
<
std
::
size_t
>&
,
const
std
::
vector
<
std
::
size_t
>&
,
const
void
*
,
const
void
*
,
void
*
)
>
{
};
class
BitShiftImpl_cpu
:
public
OperatorImpl
{
public:
BitShiftImpl_cpu
(
const
BitShift_Op
&
op
)
:
OperatorImpl
(
op
,
"cpu"
)
{}
static
std
::
unique_ptr
<
BitShiftImpl_cpu
>
create
(
const
BitShift_Op
&
op
)
{
return
std
::
make_unique
<
BitShiftImpl_cpu
>
(
op
);
}
Elts_t
getNbRequiredProtected
(
const
IOIndex_t
inputIdx
)
const
override
final
;
void
forward
()
override
;
};
namespace
{
static
Registrar
<
BitShift_Op
>
registrarBitShiftImpl_cpu
(
"cpu"
,
Aidge
::
BitShiftImpl_cpu
::
create
);
}
}
// namespace Aidge
#endif
/* AIDGE_CPU_OPERATOR_BITSHIFTIMPL_H_ */
Loading