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
151f782c
Commit
151f782c
authored
1 year ago
by
Thibault Allenet
Browse files
Options
Downloads
Patches
Plain Diff
Add an offset argument in the tensor copy CPP implementation
parent
0687f9bc
No related branches found
No related tags found
2 merge requests
!50
version 0.2.0
,
!2
Scheduler ConnectInput and tensor filling with offset tests
Pipeline
#30955
failed
1 year ago
Stage: static_analysis
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/aidge/data/TensorImpl.hpp
+2
-2
2 additions, 2 deletions
include/aidge/data/TensorImpl.hpp
unit_tests/Test_TensorImpl.cpp
+1
-0
1 addition, 0 deletions
unit_tests/Test_TensorImpl.cpp
with
3 additions
and
2 deletions
include/aidge/data/TensorImpl.hpp
+
2
−
2
View file @
151f782c
...
...
@@ -37,9 +37,9 @@ class TensorImpl_cpu : public TensorImpl {
std
::
size_t
scalarSize
()
const
override
{
return
sizeof
(
T
);
}
void
copy
(
const
void
*
src
,
NbElts_t
length
)
override
{
void
copy
(
const
void
*
src
,
NbElts_t
length
,
std
::
size_t
offset
=
0
)
override
{
std
::
copy
(
static_cast
<
const
T
*>
(
src
),
static_cast
<
const
T
*>
(
src
)
+
length
,
static_cast
<
T
*>
(
rawPtr
()));
static_cast
<
T
*>
(
rawPtr
())
+
offset
);
}
void
*
rawPtr
()
override
{
...
...
This diff is collapsed.
Click to expand it.
unit_tests/Test_TensorImpl.cpp
+
1
−
0
View file @
151f782c
...
...
@@ -57,3 +57,4 @@ TEST_CASE("Tensor creation") {
}
}
}
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