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
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
Cyril Moineau
aidge_core
Commits
c67c47ef
Commit
c67c47ef
authored
9 months ago
by
Olivier BICHLER
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into fusetometaops
parents
35287d0e
a4762c5f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/aidge/backend/TensorImpl.hpp
+1
-3
1 addition, 3 deletions
include/aidge/backend/TensorImpl.hpp
src/backend/cpu/data/TensorImpl.cpp
+1
-6
1 addition, 6 deletions
src/backend/cpu/data/TensorImpl.cpp
with
2 additions
and
9 deletions
include/aidge/backend/TensorImpl.hpp
+
1
−
3
View file @
c67c47ef
...
...
@@ -201,9 +201,7 @@ public:
/**
* @brief Set every element of the implementation to zero.
*/
virtual
void
zeros
()
{
AIDGE_THROW_OR_ABORT
(
std
::
runtime_error
,
"Function not implented"
);
}
virtual
void
zeros
()
=
0
;
const
std
::
string
backend
()
const
{
return
mBackend
;
}
...
...
This diff is collapsed.
Click to expand it.
src/backend/cpu/data/TensorImpl.cpp
+
1
−
6
View file @
c67c47ef
...
...
@@ -38,12 +38,7 @@ bool Aidge::TensorImpl_cpu<T>::operator==(const Aidge::TensorImpl &other) const
template
<
typename
T
>
void
Aidge
::
TensorImpl_cpu
<
T
>::
zeros
()
{
if
(
mData
.
empty
())
{
lazyInit
();
}
for
(
std
::
size_t
i
=
0
;
i
<
mData
.
size
();
++
i
)
{
*
(
mData
.
data
()
+
i
)
=
T
(
0
);
}
std
::
memset
(
rawPtr
(),
T
(
0
),
mNbElts
*
sizeof
(
T
));
}
template
<
typename
T
>
...
...
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