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
e316161e
Commit
e316161e
authored
8 months ago
by
Houssem ROUIS
Browse files
Options
Downloads
Patches
Plain Diff
fix merge error
parent
f653463e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!212
Version 0.3.0
,
!178
Learning backend cuda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/operator/ReduceMean.cpp
+6
-4
6 additions, 4 deletions
src/operator/ReduceMean.cpp
with
6 additions
and
4 deletions
src/operator/ReduceMean.cpp
+
6
−
4
View file @
e316161e
...
@@ -27,11 +27,12 @@
...
@@ -27,11 +27,12 @@
const
std
::
string
Aidge
::
ReduceMean_Op
::
Type
=
"ReduceMean"
;
const
std
::
string
Aidge
::
ReduceMean_Op
::
Type
=
"ReduceMean"
;
Aidge
::
ReduceMean_Op
::
ReduceMean_Op
(
const
std
::
vector
<
std
::
int32_t
>&
axes
,
Aidge
::
DimSize_t
keep_dim
s
)
Aidge
::
ReduceMean_Op
::
ReduceMean_Op
(
const
std
::
vector
<
std
::
int32_t
>&
axes
,
bool
keep_dims
,
bool
noop_with_empty_axe
s
)
:
OperatorTensor
(
Type
,
{
InputCategory
::
Data
},
1
),
:
OperatorTensor
(
Type
,
{
InputCategory
::
Data
},
1
),
mAttributes
(
std
::
make_shared
<
Attributes_
>
(
mAttributes
(
std
::
make_shared
<
Attributes_
>
(
attr
<
ReduceMeanAttr
::
Axes
>
(
axes
),
attr
<
ReduceMeanAttr
::
Axes
>
(
axes
),
attr
<
ReduceMeanAttr
::
KeepDims
>
(
keep_dims
)))
attr
<
ReduceMeanAttr
::
KeepDims
>
(
keep_dims
),
attr
<
ReduceMeanAttr
::
NoopWithEmptyAxes
>
(
noop_with_empty_axes
)))
{}
{}
Aidge
::
ReduceMean_Op
::
ReduceMean_Op
(
const
Aidge
::
ReduceMean_Op
&
op
)
Aidge
::
ReduceMean_Op
::
ReduceMean_Op
(
const
Aidge
::
ReduceMean_Op
&
op
)
...
@@ -96,8 +97,9 @@ void Aidge::ReduceMean_Op::setBackend(const std::string& name, Aidge::DeviceIdx_
...
@@ -96,8 +97,9 @@ void Aidge::ReduceMean_Op::setBackend(const std::string& name, Aidge::DeviceIdx_
////////////////////////////////////////////
////////////////////////////////////////////
std
::
shared_ptr
<
Aidge
::
Node
>
Aidge
::
ReduceMean
(
const
std
::
vector
<
std
::
int32_t
>
&
axes
,
std
::
shared_ptr
<
Aidge
::
Node
>
Aidge
::
ReduceMean
(
const
std
::
vector
<
std
::
int32_t
>
&
axes
,
Aidge
::
DimSize_t
keep_dims
,
bool
keep_dims
,
bool
noop_with_empty_axes
,
const
std
::
string
&
name
)
{
const
std
::
string
&
name
)
{
AIDGE_ASSERT
(
axes
.
size
()
<=
MaxDim
,
"Too many kernel dimensions required by ReduceMean, not supported"
);
AIDGE_ASSERT
(
axes
.
size
()
<=
MaxDim
,
"Too many kernel dimensions required by ReduceMean, not supported"
);
return
std
::
make_shared
<
Node
>
(
std
::
make_shared
<
ReduceMean_Op
>
(
axes
,
keep_dims
),
name
);
return
std
::
make_shared
<
Node
>
(
std
::
make_shared
<
ReduceMean_Op
>
(
axes
,
keep_dims
,
noop_with_empty_axes
),
name
);
}
}
\ 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