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
61ece703
Commit
61ece703
authored
1 month ago
by
Olivier BICHLER
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation issue with NVCC
parent
9c1832f9
No related branches found
No related tags found
3 merge requests
!414
Update version 0.5.1 -> 0.6.0
,
!408
[Add] Dropout Operator
,
!377
Add TopK operator
Pipeline
#69201
passed
1 month ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/aidge/utils/DynamicAttributes.hpp
+2
-3
2 additions, 3 deletions
include/aidge/utils/DynamicAttributes.hpp
with
2 additions
and
3 deletions
include/aidge/utils/DynamicAttributes.hpp
+
2
−
3
View file @
61ece703
...
@@ -451,10 +451,9 @@ namespace std {
...
@@ -451,10 +451,9 @@ namespace std {
struct
hash
<
Container
<
T
,
Args
...
>>
{
struct
hash
<
Container
<
T
,
Args
...
>>
{
std
::
size_t
operator
()(
const
Container
<
T
,
Args
...
>&
iterable
)
const
{
std
::
size_t
operator
()(
const
Container
<
T
,
Args
...
>&
iterable
)
const
{
std
::
size_t
seed
=
0
;
std
::
size_t
seed
=
0
;
for
(
const
auto
&
v
:
iterable
)
{
for
(
const
typename
Container
<
T
,
Args
...
>::
value_type
&
v
:
iterable
)
{
// Recursively hash the value pointed by the iterator
// Recursively hash the value pointed by the iterator
// Use decltype(v) instead of T to make it work for std::map for example.
Aidge
::
hash_combine
(
seed
,
std
::
hash
<
std
::
remove_const_t
<
std
::
remove_reference_t
<
typename
Container
<
T
,
Args
...
>::
value_type
>>>
()(
v
));
Aidge
::
hash_combine
(
seed
,
std
::
hash
<
std
::
remove_const_t
<
std
::
remove_reference_t
<
decltype
(
v
)
>>>
()(
v
));
}
}
return
seed
;
return
seed
;
}
}
...
...
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