Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cuda
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_cuda
Merge requests
!10
Lenet operators
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Lenet operators
hrouis/aidge_backend_cuda:lenet_operators
into
dev
Overview
14
Commits
22
Pipelines
33
Changes
21
Merged
Houssem ROUIS
requested to merge
hrouis/aidge_backend_cuda:lenet_operators
into
dev
1 year ago
Overview
14
Commits
22
Pipelines
33
Changes
21
Expand
Added backend_cuda for the following operators:
AvgPooling
FC/Gemm
MaxPooling
ReLU
Edited
1 year ago
by
Houssem ROUIS
0
0
Merge request reports
Compare
dev
version 31
75c81956
1 year ago
version 30
291eaebe
1 year ago
version 29
e7e7137f
1 year ago
version 28
63a80c68
1 year ago
version 27
2f2c2e6f
1 year ago
version 26
ace61c0d
1 year ago
version 25
4698b49b
1 year ago
version 24
021afb9b
1 year ago
version 23
ace61c0d
1 year ago
version 22
48c45350
1 year ago
version 21
48c45350
1 year ago
version 20
f517018e
1 year ago
version 19
12c56d5e
1 year ago
version 18
435b6c51
1 year ago
version 17
3ce6135f
1 year ago
version 16
95b94e09
1 year ago
version 15
0efec0ee
1 year ago
version 14
a5711c18
1 year ago
version 13
c97f76a4
1 year ago
version 12
46c33029
1 year ago
version 11
94ac83e4
1 year ago
version 10
9e98251c
1 year ago
version 9
42fa2e76
1 year ago
version 8
4a9c15ca
1 year ago
version 7
2849852b
1 year ago
version 6
7087b7bb
1 year ago
version 5
1379055d
1 year ago
version 4
bcfc8220
1 year ago
version 3
be742aeb
1 year ago
version 2
f4454951
1 year ago
version 1
398e67c9
1 year ago
dev (base)
and
latest version
latest version
3f6ee54d
22 commits,
1 year ago
version 31
75c81956
21 commits,
1 year ago
version 30
291eaebe
20 commits,
1 year ago
version 29
e7e7137f
19 commits,
1 year ago
version 28
63a80c68
18 commits,
1 year ago
version 27
2f2c2e6f
17 commits,
1 year ago
version 26
ace61c0d
15 commits,
1 year ago
version 25
4698b49b
17 commits,
1 year ago
version 24
021afb9b
16 commits,
1 year ago
version 23
ace61c0d
15 commits,
1 year ago
version 22
48c45350
14 commits,
1 year ago
version 21
48c45350
26 commits,
1 year ago
version 20
f517018e
25 commits,
1 year ago
version 19
12c56d5e
23 commits,
1 year ago
version 18
435b6c51
22 commits,
1 year ago
version 17
3ce6135f
21 commits,
1 year ago
version 16
95b94e09
20 commits,
1 year ago
version 15
0efec0ee
19 commits,
1 year ago
version 14
a5711c18
5 commits,
1 year ago
version 13
c97f76a4
5 commits,
1 year ago
version 12
46c33029
5 commits,
1 year ago
version 11
94ac83e4
5 commits,
1 year ago
version 10
9e98251c
5 commits,
1 year ago
version 9
42fa2e76
5 commits,
1 year ago
version 8
4a9c15ca
5 commits,
1 year ago
version 7
2849852b
5 commits,
1 year ago
version 6
7087b7bb
5 commits,
1 year ago
version 5
1379055d
5 commits,
1 year ago
version 4
bcfc8220
5 commits,
1 year ago
version 3
be742aeb
5 commits,
1 year ago
version 2
f4454951
4 commits,
1 year ago
version 1
398e67c9
3 commits,
1 year ago
21 files
+
1368
−
17
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
21
Search (e.g. *.vue) (Ctrl+P)
include/aidge/backend/cuda/operator/AvgPoolingImpl.hpp
0 → 100644
+
59
−
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_BACKEND_CUDA_OPERATOR_AVGPOOLINGIMPL_H_
#define AIDGE_BACKEND_CUDA_OPERATOR_AVGPOOLINGIMPL_H_
#include
<array>
#include
<memory>
#include
<tuple>
#include
<vector>
#include
<cudnn.h>
#include
"aidge/backend/OperatorImpl.hpp"
#include
"aidge/operator/AvgPooling.hpp"
#include
"aidge/utils/Registrar.hpp"
#include
"aidge/utils/Types.h"
#include
"aidge/backend/cuda/utils/CudaUtils.hpp"
namespace
Aidge
{
template
<
DimIdx_t
DIM
>
class
AvgPoolingImpl_cuda
:
public
OperatorImpl
{
private:
// CuDNN specific variables
cudnnPoolingDescriptor_t
mAvgPoolingDesc
=
nullptr
;
cudnnPoolingMode_t
mMode
=
CUDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING
;
std
::
shared_ptr
<
Tensor
>
mInputFallback
;
public:
AvgPoolingImpl_cuda
(
const
AvgPooling_Op
<
DIM
>
&
op
)
:
OperatorImpl
(
op
,
"cuda"
)
{}
static
std
::
unique_ptr
<
AvgPoolingImpl_cuda
>
create
(
const
AvgPooling_Op
<
2
>
&
op
)
{
return
std
::
make_unique
<
AvgPoolingImpl_cuda
>
(
op
);
}
public
:
void
forward
();
~
AvgPoolingImpl_cuda
();
private
:
template
<
class
T
>
void
forward_
(
const
Tensor
&
input
);
};
namespace
{
// add cuda backend to AvgPooling_Op<2> implementation registry
static
Registrar
<
AvgPooling_Op
<
2
>>
registrarAvgPoolingImpl_cuda
(
"cuda"
,
Aidge
::
AvgPoolingImpl_cuda
<
2
>::
create
);
}
// namespace
}
// namespace Aidge
#endif
/* AIDGE_BACKEND_CUDA_OPERATOR_AVGPOOLINGIMPL_H_ */
Loading