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
6
Merged
Houssem ROUIS
requested to merge
hrouis/aidge_backend_cuda:lenet_operators
into
dev
1 year ago
Overview
14
Commits
22
Pipelines
33
Changes
6
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
Viewing commit
991a38c1
Prev
Next
Show latest version
6 files
+
337
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
991a38c1
add fc operator
· 991a38c1
Houssem ROUIS
authored
1 year ago
include/aidge/backend/cuda/operator/FCImpl.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_FCIMPL_H_
#define AIDGE_BACKEND_CUDA_OPERATOR_FCIMPL_H_
#include
<array>
#include
<memory>
#include
<tuple>
#include
<vector>
#include
<cudnn.h>
#include
"aidge/backend/OperatorImpl.hpp"
#include
"aidge/operator/FC.hpp"
#include
"aidge/utils/Registrar.hpp"
#include
"aidge/utils/Types.h"
#include
"aidge/backend/cuda/utils/CudaUtils.hpp"
namespace
Aidge
{
class
FCImplForward_cuda
:
public
Registrable
<
FCImplForward_cuda
,
std
::
tuple
<
DataType
>
,
void
(
unsigned
int
,
unsigned
int
,
unsigned
int
,
bool
,
const
void
*
,
const
void
*
,
const
void
*
,
void
*
)
>
{};
class
FCImpl_cuda
:
public
OperatorImpl
{
private:
// CuDNN specific variables
public:
FCImpl_cuda
(
const
FC_Op
&
op
)
:
OperatorImpl
(
op
)
{}
static
std
::
unique_ptr
<
FCImpl_cuda
>
create
(
const
FC_Op
&
op
)
{
return
std
::
make_unique
<
FCImpl_cuda
>
(
op
);
}
public
:
void
forward
();
// ~FCImpl_cuda();
private
:
template
<
class
T
>
void
forward_
(
const
Tensor
&
input0
,
const
Tensor
&
input1
,
const
Tensor
&
input2
,
bool
noBias
,
DimSize_t
outChannels
);
};
namespace
{
// add cuda backend to FC_Op implementation registry
static
Registrar
<
FC_Op
>
registrarFCImpl_cuda
(
"cuda"
,
Aidge
::
FCImpl_cuda
::
create
);
}
// namespace
}
// namespace Aidge
#endif
/* AIDGE_BACKEND_CUDA_OPERATOR_FCIMPL_H_ */
Loading