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
14c0abbd
Commit
14c0abbd
authored
4 months ago
by
Octave Perrin
Browse files
Options
Downloads
Patches
Plain Diff
update python bind
parent
bd906dbe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/aidge/graph/GraphView.hpp
+1
-1
1 addition, 1 deletion
include/aidge/graph/GraphView.hpp
python_binding/graph/pybind_GraphView.cpp
+9
-3
9 additions, 3 deletions
python_binding/graph/pybind_GraphView.cpp
with
10 additions
and
4 deletions
include/aidge/graph/GraphView.hpp
+
1
−
1
View file @
14c0abbd
...
@@ -133,7 +133,7 @@ public:
...
@@ -133,7 +133,7 @@ public:
* specified location.
* specified location.
* @param string path: Path where the file should be put
* @param string path: Path where the file should be put
* @param bool verbose: If true give more informations in the console during the saving process
* @param bool verbose: If true give more informations in the console during the saving process
* @param bool showProducers: if true, shows
additional informations
* @param bool showProducers: if true, shows
the producers as well
*/
*/
void
save
(
const
std
::
string
&
path
,
bool
verbose
=
false
,
bool
showProducers
=
true
)
const
;
void
save
(
const
std
::
string
&
path
,
bool
verbose
=
false
,
bool
showProducers
=
true
)
const
;
...
...
This diff is collapsed.
Click to expand it.
python_binding/graph/pybind_GraphView.cpp
+
9
−
3
View file @
14c0abbd
...
@@ -29,6 +29,10 @@ void init_GraphView(py::module& m) {
...
@@ -29,6 +29,10 @@ void init_GraphView(py::module& m) {
:param path: save location
:param path: save location
:type path: str
:type path: str
:param verbose: If true give more informations in the console during the saving process
:type verbose: bool
:param show_producers: if true, shows the producer Nodes as well
:type show_producers: bool
)mydelimiter"
)
)mydelimiter"
)
.
def
(
"inputs"
,
(
std
::
vector
<
std
::
pair
<
NodePtr
,
IOIndex_t
>>
(
GraphView
::*
)()
const
)
&
GraphView
::
inputs
,
.
def
(
"inputs"
,
(
std
::
vector
<
std
::
pair
<
NodePtr
,
IOIndex_t
>>
(
GraphView
::*
)()
const
)
&
GraphView
::
inputs
,
...
@@ -45,8 +49,8 @@ void init_GraphView(py::module& m) {
...
@@ -45,8 +49,8 @@ void init_GraphView(py::module& m) {
R"mydelimiter(
R"mydelimiter(
List outside output connections of the GraphView.
List outside output connections of the GraphView.
The vector size is guaranteed to match the number of outputs of the GraphView.
The vector size is guaranteed to match the number of outputs of the GraphView.
If there is no connection to a given output, the corresponding sub-vector will be empty.
If there is no connection to a given output, the corresponding sub-vector will be empty.
:return: A list containing the pairs Node, output indexes.
:return: A list containing the pairs Node, output indexes.
:rtype: List[Node, int]
:rtype: List[Node, int]
)mydelimiter"
)
)mydelimiter"
)
...
@@ -137,6 +141,7 @@ void init_GraphView(py::module& m) {
...
@@ -137,6 +141,7 @@ void init_GraphView(py::module& m) {
R"mydelimiter(
R"mydelimiter(
Get set of output Nodes.
Get set of output Nodes.
:return: the output Nodes of the Graph
:rtype: list[Node]
:rtype: list[Node]
)mydelimiter"
)
)mydelimiter"
)
...
@@ -144,6 +149,7 @@ void init_GraphView(py::module& m) {
...
@@ -144,6 +149,7 @@ void init_GraphView(py::module& m) {
R"mydelimiter(
R"mydelimiter(
Get set of input Nodes.
Get set of input Nodes.
:return: the input Nodes of the Graph
:rtype: list[Node]
:rtype: list[Node]
)mydelimiter"
)
)mydelimiter"
)
...
@@ -227,9 +233,9 @@ void init_GraphView(py::module& m) {
...
@@ -227,9 +233,9 @@ void init_GraphView(py::module& m) {
Replace the old set of Nodes with the new set of given Nodes if possible in every GraphView.
Replace the old set of Nodes with the new set of given Nodes if possible in every GraphView.
:param old_nodes: Nodes actually connected in GraphViews.
:param old_nodes: Nodes actually connected in GraphViews.
:type old_nodes: Node
:type old_nodes:
List[
Node
]
:param new_nodes: Nodes with inner connections already taken care of.
:param new_nodes: Nodes with inner connections already taken care of.
:type new_nodes: Node
:type new_nodes:
List[
Node
]
:return: Whether any replacement has been made.
:return: Whether any replacement has been made.
:rtype: bool
:rtype: bool
)mydelimiter"
)
)mydelimiter"
)
...
...
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