Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
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
Michal Szczepanski
aidge_core
Commits
d8913efd
Commit
d8913efd
authored
1 year ago
by
laurent soulier
Browse files
Options
Downloads
Patches
Plain Diff
[MAJ][TBV] replacing unique_tr by shared_ptr for Tensor implementation pointer
parent
5c09fe30
Branches
feat/TensorCopy
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/aidge/data/Tensor.hpp
+1
-13
1 addition, 13 deletions
include/aidge/data/Tensor.hpp
src/data/Tensor.cpp
+0
-6
0 additions, 6 deletions
src/data/Tensor.cpp
with
1 addition
and
19 deletions
include/aidge/data/Tensor.hpp
+
1
−
13
View file @
d8913efd
...
...
@@ -38,19 +38,7 @@ namespace detail
{
namespace
pimpl
{
/// @brief actual implementation of the deleter
/// @internal
void
DeleteImpl
(
TensorImpl
*
pImpl
)
noexcept
;
/// @brief Implementation deleter
/// @internal
struct
SImplDeleter
{
void
operator
()(
TensorImpl
*
pImpl
)
const
noexcept
{
DeleteImpl
(
pImpl
);
}
};
using
ImplPtr_t
=
std
::
unique_ptr
<
TensorImpl
,
SImplDeleter
>
;
using
ImplPtr_t
=
std
::
shared_ptr
<
TensorImpl
>
;
}
// namespace pimpl
/// @brief Check if a valid area is included in another one.
...
...
This diff is collapsed.
Click to expand it.
src/data/Tensor.cpp
+
0
−
6
View file @
d8913efd
...
...
@@ -14,12 +14,6 @@
namespace
Aidge
{
/// @brief actual implementation of the deleter
void
detail
::
pimpl
::
DeleteImpl
(
TensorImpl
*
pImpl
)
noexcept
{
delete
pImpl
;
}
/// @brief Check if a valid area is included in another one.
bool
detail
::
IsSubTensorIncluded
(
std
::
vector
<
Coord_t
>
const
&
i_SubFirstDataLogicalCoordinates
,
...
...
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