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
Merge requests
!48
Refactor/recipies
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor/recipies
refactor/recipies
into
main
Overview
1
Commits
6
Pipelines
3
Changes
22
Merged
vincent lorrain
requested to merge
refactor/recipies
into
main
1 year ago
Overview
1
Commits
6
Pipelines
3
Changes
22
Expand
Use graphRegex for recipies
Fuse Batch Norm
Remove Flatten
Fuse Mul Add
pybinding
clean
0
0
Merge request reports
Viewing commit
4540e79c
Prev
Next
Show latest version
22 files
+
6
−
2078
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
22
Search (e.g. *.vue) (Ctrl+P)
4540e79c
clean and remove old graph matching
· 4540e79c
vincent lorrain
authored
1 year ago
include/aidge/graphmatching/GRegex.hpp deleted
100644 → 0
+
0
−
63
Options
/********************************************************************************
* Copyright (c) 2023 CEA-List
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
#ifndef AIDGE_GREGEX_H_
#define AIDGE_GREGEX_H_
#include
<stdexcept>
// for exception, runtime_error, out_of_range
#include
<regex>
#include
<memory>
// for shared_ptr
#include
<algorithm>
// for next_permutation
#include
"aidge/graphmatching/Utile.hpp"
#include
"aidge/graphmatching/StmFactory.hpp"
#include
"aidge/graphmatching/SeqStm.hpp"
#include
"aidge/graphmatching/NodeRegex.hpp"
#include
"aidge/graphmatching/Match.hpp"
namespace
Aidge
{
class
GRegex
{
// __init__(self,nodes_regex:dict,seq_regexps:list)
StmFactory
mStmFab
;
std
::
vector
<
SeqStm
*>
mStmInit
;
public:
GRegex
(
const
std
::
map
<
std
::
string
,
NodeRegex
*>&
nodesRegex
,
std
::
vector
<
std
::
string
>&
seqRegexps
);
std
::
set
<
NodeTmp
>
matchFromStartNodes
(
const
std
::
vector
<
NodeTmp
>
startNodes
,
const
std
::
shared_ptr
<
GraphView
>
graphToMatch
);
bool
walk_validation_all_stm_are_valid
(
const
std
::
vector
<
std
::
vector
<
SeqStm
*>>
all_stm
);
bool
walk_validation_all_node_read_validate_by_one_stm
(
const
std
::
vector
<
std
::
vector
<
SeqStm
*>>
all_stm
);
bool
walk_validation_common_nodes_same_tag_for_all_stm
(
const
std
::
vector
<
std
::
vector
<
SeqStm
*>>
all_stm
);
std
::
set
<
NodeTmp
>
get_all_validate_nodes
(
const
std
::
vector
<
std
::
vector
<
SeqStm
*>>
all_stm
);
std
::
vector
<
SeqStm
*>
getStmInit
()
const
{
return
mStmInit
;
}
StmFactory
getStmFab
()
const
{
return
mStmFab
;
}
//std::set<std::pair<std::vector<NodeTmp>,std::set<NodeTmp>>> match(const std::shared_ptr<GraphView> graphToMatch);
Match
match
(
const
std
::
shared_ptr
<
GraphView
>
graphToMatch
);
};
}
#endif //AIDGE_GREGEX_H_
\ No newline at end of file
Loading