Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
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_core
Commits
6ec0de5c
Commit
6ec0de5c
authored
11 months ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
Fix
parent
62c5328d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!105
version 0.2.0
,
!91
Feat/operator global average pooling
Pipeline
#42563
passed
11 months ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/operator/GlobalAveragePooling.cpp
+6
-1
6 additions, 1 deletion
src/operator/GlobalAveragePooling.cpp
with
7 additions
and
2 deletions
CMakeLists.txt
+
1
−
1
View file @
6ec0de5c
...
...
@@ -19,7 +19,7 @@ option(PYBIND "python binding" ON)
option
(
WERROR
"Warning as error"
OFF
)
option
(
TEST
"Enable tests"
ON
)
option
(
COVERAGE
"Enable coverage"
OFF
)
option
(
ENABLE_ASAN
"Enable ASan (
a
dress
s
anitizer) for runtime analysis of memory use (over/underflow, memory leak, ...)"
OFF
)
option
(
ENABLE_ASAN
"Enable ASan (
Ad
dress
S
anitizer) for runtime analysis of memory use (over/underflow, memory leak, ...)"
OFF
)
##############################################
# Import utils CMakeLists
...
...
This diff is collapsed.
Click to expand it.
src/operator/GlobalAveragePooling.cpp
+
6
−
1
View file @
6ec0de5c
...
...
@@ -9,10 +9,15 @@
*
********************************************************************************/
#include
<memory>
#include
<stdexcept>
// std::runtime_error
#include
<string>
#include
<vector>
#include
"aidge/data/Tensor.hpp"
#include
"aidge/operator/GlobalAveragePooling.hpp"
#include
"aidge/utils/ErrorHandling.hpp"
#include
"aidge/utils/Types.h"
const
std
::
string
Aidge
::
GlobalAveragePooling_Op
::
Type
=
"GlobalAveragePooling"
;
...
...
@@ -41,7 +46,7 @@ void Aidge::GlobalAveragePooling_Op::computeOutputDims() {
}
}
void
Aidge
::
GlobalAveragePooling_Op
::
setBackend
(
const
std
::
string
&
name
,
DeviceIdx_t
device
)
{
void
Aidge
::
GlobalAveragePooling_Op
::
setBackend
(
const
std
::
string
&
name
,
Aidge
::
DeviceIdx_t
device
)
{
SET_IMPL_MACRO
(
GlobalAveragePooling_Op
,
*
this
,
name
);
mOutputs
[
0
]
->
setBackend
(
name
,
device
);
}
\ No newline at end of file
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