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
Commits
84e1e2ad
Commit
84e1e2ad
authored
2 months ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
upd: remove 'Aidge::' scope from ConvImpl::forward functions
parent
5cf9facb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!166
Update 0.5.0 -> 0.6.0
,
!161
fix: backward namespace
Pipeline
#70363
passed
2 months ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/operator/ConvImpl.cpp
+10
-5
10 additions, 5 deletions
src/operator/ConvImpl.cpp
with
10 additions
and
5 deletions
src/operator/ConvImpl.cpp
+
10
−
5
View file @
84e1e2ad
...
...
@@ -12,15 +12,18 @@
#include
"aidge/backend/cpu/operator/ConvImpl.hpp"
#include
"aidge/backend/cpu/operator/ConvImpl_kernels.hpp"
#include
<cassert>
#include
<memory>
#include
<vector>
#include
"aidge/backend/cpu/data/GetCPUPtr.h"
#include
"aidge/operator/Conv.hpp"
#include
"aidge/utils/ErrorHandling.hpp"
#include
"aidge/utils/Types.h"
namespace
Aidge
{
template
<
>
void
Aidge
::
ConvImpl1D_cpu
::
forward
()
{
void
ConvImpl1D_cpu
::
forward
()
{
const
auto
&
op_
=
static_cast
<
const
Conv_Op
<
1
>&>
(
mOp
);
// FIXME: uncomment the following code once memory handling will work
...
...
@@ -53,7 +56,8 @@ void Aidge::ConvImpl1D_cpu::forward() {
);
}
template
<
>
void
ConvImpl1D_cpu
::
backward
()
{
template
<
>
void
ConvImpl1D_cpu
::
backward
()
{
const
auto
&
op
=
dynamic_cast
<
const
Conv1D_Op
&>
(
mOp
);
const
auto
&
outputGrad
=
op
.
getOutput
(
0
)
->
grad
();
AIDGE_ASSERT
(
outputGrad
,
"{}: missing ouput #0 gradient"
,
op
.
type
());
...
...
@@ -97,7 +101,7 @@ template <> void ConvImpl1D_cpu::backward() {
}
template
<
>
void
Aidge
::
ConvImpl2D_cpu
::
forward
()
{
void
ConvImpl2D_cpu
::
forward
()
{
const
auto
&
op_
=
dynamic_cast
<
const
Conv_Op
<
2
>&>
(
mOp
);
// FIXME: uncomment the following code once memory handling will work
...
...
@@ -130,7 +134,8 @@ void Aidge::ConvImpl2D_cpu::forward() {
}
template
<
>
void
ConvImpl2D_cpu
::
backward
()
{
template
<
>
void
ConvImpl2D_cpu
::
backward
()
{
const
auto
&
op
=
dynamic_cast
<
const
Conv2D_Op
&>
(
mOp
);
const
auto
&
outputGrad
=
op
.
getOutput
(
0
)
->
grad
();
AIDGE_ASSERT
(
outputGrad
,
"{}: missing ouput #0 gradient"
,
op
.
type
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment