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
aee1bbe6
Commit
aee1bbe6
authored
1 year ago
by
Thibault Allenet
Browse files
Options
Downloads
Patches
Plain Diff
Update tensorimpl_cpu with dimensions
parent
c131ada5
No related branches found
No related tags found
2 merge requests
!105
version 0.2.0
,
!4
Dataloader
Pipeline
#38919
passed
1 year ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/aidge/backend/cpu/data/TensorImpl.hpp
+3
-3
3 additions, 3 deletions
include/aidge/backend/cpu/data/TensorImpl.hpp
with
3 additions
and
3 deletions
include/aidge/backend/cpu/data/TensorImpl.hpp
+
3
−
3
View file @
aee1bbe6
...
...
@@ -33,7 +33,7 @@ private:
public:
static
constexpr
const
char
*
Backend
=
"cpu"
;
TensorImpl_cpu
(
DeviceIdx_t
device
,
NbElts_t
length
)
:
TensorImpl
(
Backend
,
device
,
length
)
{}
TensorImpl_cpu
(
DeviceIdx_t
device
,
std
::
vector
<
DimSize_t
>
dims
)
:
TensorImpl
(
Backend
,
device
,
dims
)
{}
bool
operator
==
(
const
TensorImpl
&
otherImpl
)
const
override
final
{
const
auto
&
typedOtherImpl
=
reinterpret_cast
<
const
TensorImpl_cpu
<
T
>
&>
(
otherImpl
);
...
...
@@ -47,8 +47,8 @@ public:
return
i
==
mNbElts
;
}
static
std
::
shared_ptr
<
TensorImpl_cpu
>
create
(
DeviceIdx_t
device
,
NbElts_t
length
)
{
return
std
::
make_shared
<
TensorImpl_cpu
<
T
>>
(
device
,
length
);
static
std
::
shared_ptr
<
TensorImpl_cpu
>
create
(
DeviceIdx_t
device
,
std
::
vector
<
DimSize_t
>
dims
)
{
return
std
::
make_shared
<
TensorImpl_cpu
<
T
>>
(
device
,
dims
);
}
inline
std
::
size_t
scalarSize
()
const
noexcept
override
final
{
return
sizeof
(
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