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
b04b066c
Commit
b04b066c
authored
4 months ago
by
Octave Perrin
Browse files
Options
Downloads
Patches
Plain Diff
python binds correct syntax
parent
77018025
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_binding/graph/pybind_GraphView.cpp
+4
-0
4 additions, 0 deletions
python_binding/graph/pybind_GraphView.cpp
with
4 additions
and
0 deletions
python_binding/graph/pybind_GraphView.cpp
+
4
−
0
View file @
b04b066c
...
...
@@ -60,6 +60,7 @@ void init_GraphView(py::module& m) {
Orders the inputs of the GraphView
The inputs will be ordered in the same order as they come in the std::vector.
Inputs missing from this vector will then be added as per their previous order.
:param inputs: set of inputs in the wanted order
:type inputs: List[(Node, int)]
)mydelimiter"
)
...
...
@@ -69,6 +70,7 @@ void init_GraphView(py::module& m) {
Orders the outputs of the GraphView
The outputs will be ordered in the same order as they come in the std::vector.
Outputs missing from this vector will then be added as per their previous order.
:param outputs: set of outputs in the wanted order
:type outputs: List[(Node, int)]
)mydelimiter"
)
...
...
@@ -146,6 +148,7 @@ void init_GraphView(py::module& m) {
When a Node is removed, the clone() method automatically finds the next valid parent in line, going backward in
the graph and connects it if that makes sense without ambiguity (effectively treating the removed Node as an
identity operation).
:param cloneNode Callback function to clone a node
:type cloneNode Node
:return: Cloned GraphView
...
...
@@ -160,6 +163,7 @@ void init_GraphView(py::module& m) {
.
def
(
"get_node"
,
&
GraphView
::
getNode
,
py
::
arg
(
"node_name"
),
R"mydelimiter(
Get the Node with the corresponding name if it is in the GraphView.
:param node_name The name of the Node
:type string
:return: The Node of the GraphView with corresponding name
...
...
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