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
d0662bae
Commit
d0662bae
authored
10 months ago
by
Olivier BICHLER
Browse files
Options
Downloads
Patches
Plain Diff
Doc improvement
parent
568512e6
No related branches found
No related tags found
2 merge requests
!152
Update Aidge export to take a graph view has an argument instead of a...
,
!138
Alternative graph matching
Pipeline
#46099
passed
10 months 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/graph/Matching.hpp
+11
-3
11 additions, 3 deletions
include/aidge/graph/Matching.hpp
with
11 additions
and
3 deletions
include/aidge/graph/Matching.hpp
+
11
−
3
View file @
d0662bae
...
...
@@ -78,18 +78,26 @@ public:
*
* Some rules:
* - The first node of the first sequence is the root node and cannot be optional
* WRONG: Conv?->ReLU (will throw
s
an error)
* WRONG: Conv?->ReLU (will throw an error)
* GOOD: ReLU<-Conv?
*
* - The first node of any further sequence must be an existing anchor
* (the anchor cannot be in the middle of the sequence)
* WRONG: Conv->ReLU;Pad->Conv (will throw
s
an error)
* Pad->Conv;Conv->ReLU (will throw
s
an error)
* WRONG: Conv->ReLU;Pad->Conv (will throw an error)
* Pad->Conv;Conv->ReLU (will throw an error)
* GOOD: Conv#->ReLU;Conv#<-Pad
* Pad->Conv#;Conv#->ReLU
*
* - Any node already matched cannot be matched again (except for anchors)
*
* - By default, an edge matches the first output to the first input.
* EXAMPLE: ReLU->Conv is equivalent to ReLU-0-0>Conv
* To match the second input, use ReLU-0-1>Conv (or ReLU-1>Conv)
* To match the second output, use ReLU-1-0>Conv
* To match any input and/or any output, use *, like ReLU-1-*>Conv
* or ReLU-*-0>Conv or ReLU-*-*>Conv
* The same is true for the "<-" edge syntax.
*
* - When several nodes could match for a given node query, the first one
* not already in the matching result is matched, following the
* childs/parents ordered node list
...
...
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