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
!65
Add missing attributes to operators
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add missing attributes to operators
hrouis/aidge_backend_cpu:fix/add_missing_attr
into
dev
Overview
0
Commits
6
Pipelines
5
Changes
5
Merged
Houssem ROUIS
requested to merge
hrouis/aidge_backend_cpu:fix/add_missing_attr
into
dev
11 months ago
Overview
0
Commits
6
Pipelines
5
Changes
5
Expand
Context
Moved SliceImpl to backend_cpu
Edited
11 months ago
by
Houssem ROUIS
0
0
Merge request reports
Compare
dev
version 6
7581ea63
11 months ago
version 5
7581ea63
11 months ago
version 4
7581ea63
11 months ago
version 3
7581ea63
11 months ago
version 2
202bd1d0
11 months ago
version 1
d3a367f6
11 months ago
dev (base)
and
latest version
latest version
2602f119
6 commits,
11 months ago
version 6
7581ea63
5 commits,
11 months ago
version 5
7581ea63
5 commits,
11 months ago
version 4
7581ea63
5 commits,
11 months ago
version 3
7581ea63
5 commits,
11 months ago
version 2
202bd1d0
4 commits,
11 months ago
version 1
d3a367f6
3 commits,
11 months ago
5 files
+
468
−
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/SliceImpl.hpp
0 → 100644
+
52
−
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_SLICEIMPL_H__
#define __AIDGE_CPU_OPERATOR_SLICEIMPL_H__
#include
"aidge/backend/OperatorImpl.hpp"
#include
"aidge/operator/Slice.hpp"
#include
"aidge/utils/Registrar.hpp"
#include
"aidge/utils/Types.h"
#include
"aidge/backend/cpu/data/GetCPUPtr.h"
#include
<memory>
#include
<vector>
#include
<array>
namespace
Aidge
{
// class Slice_Op;
// compute kernel registry for forward and backward
class
SliceImplForward_cpu
:
public
Registrable
<
SliceImplForward_cpu
,
std
::
tuple
<
DataType
,
DataType
>
,
void
(
const
Slice_Op
::
Attrs
&
,
const
std
::
vector
<
DimSize_t
>&
,
const
void
*
,
void
*
)
>
{
};
class
SliceImplBackward_cpu
:
public
Registrable
<
SliceImplBackward_cpu
,
std
::
tuple
<
DataType
,
DataType
>
,
void
(
const
Slice_Op
::
Attrs
&
,
const
std
::
vector
<
DimSize_t
>&
,
const
void
*
,
void
*
)
>
{
};
class
SliceImpl_cpu
:
public
OperatorImpl
{
public:
SliceImpl_cpu
(
const
Slice_Op
&
op
)
:
OperatorImpl
(
op
,
"cpu"
)
{}
static
std
::
unique_ptr
<
SliceImpl_cpu
>
create
(
const
Slice_Op
&
op
)
{
return
std
::
make_unique
<
SliceImpl_cpu
>
(
op
);
}
Elts_t
getNbRequiredProtected
(
const
IOIndex_t
inputIdx
)
const
override
final
;
void
forward
()
override
;
};
namespace
{
static
Registrar
<
Slice_Op
>
registrarSliceImpl_cpu
(
"cpu"
,
Aidge
::
SliceImpl_cpu
::
create
);
}
}
// namespace Aidge
#endif
/* __AIDGE_CPU_OPERATOR_SLICEIMPL_H__ */
Loading