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
0673c69b
Commit
0673c69b
authored
4 months ago
by
Octave Perrin
Browse files
Options
Downloads
Patches
Plain Diff
back to graphview
parent
cf6aff09
No related branches found
No related tags found
1 merge request
!245
aidge_core#194: Add documentation for GraphView
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_binding/graph/pybind_GraphView.cpp
+25
-6
25 additions, 6 deletions
python_binding/graph/pybind_GraphView.cpp
with
25 additions
and
6 deletions
python_binding/graph/pybind_GraphView.cpp
+
25
−
6
View file @
0673c69b
...
...
@@ -76,32 +76,51 @@ void init_GraphView(py::module& m) {
.
def
(
"set_root_node"
,
&
GraphView
::
setRootNode
,
py
::
arg
(
"node"
),
R"mydelimiter(
TODO
Changes the rootNode of the GraphView
:param node: The Node of the GraphView that will become the new rootNode
:type node: Node
)mydelimiter"
)
.
def
(
"__repr__"
,
&
GraphView
::
repr
,
R"mydelimiter(
TODO
returns information about the graphView: its name, number of nodes, of inputs and of outputs.
:return: a chain of caracter describing the graphView
:rtype: string
)mydelimiter"
)
.
def
(
"__len__"
,
[](
const
GraphView
&
g
){
return
g
.
getNodes
().
size
();
},
R"mydelimiter(
TODO
returns the number of Nodes of the GraphView
:param g: The observed graphView
:type g: graphView
:return: the number of Nodes of the graphView g
:rtype: int
)mydelimiter"
)
.
def
(
"log_outputs"
,
&
GraphView
::
logOutputs
,
py
::
arg
(
"path"
),
R"mydelimiter(
TODO
Logs the output of all nodes of the graph in a directory
In the specified directory, it will create a subdirectory for each Node of the GraphView
In that sub-directory, each output of the Node will be saved in a different .log file
:param path: The path to the folder where we wish to stock the logs
:type path: string
)mydelimiter"
)
.
def
(
"get_ordered_inputs"
,
&
GraphView
::
getOrderedInputs
,
R"mydelimiter(
TODO
Get inputs of the current GraphView with their associated id.
The rank of the nodes are their rank in the vector.
:return: The pairs Node, inputId of each input of the graphView
:rtype: List[(Node, int)]
)mydelimiter"
)
.
def
(
"get_ordered_outputs"
,
&
GraphView
::
getOrderedOutputs
,
R"mydelimiter(
TODO
Get outputs of the current GraphView with their associated id.
The rank of the nodes are their rank in the vector.
:return: The pairs Node, outputId of each output of the graphView
:rtype: List[(Node, int)]
)mydelimiter"
)
.
def
(
"get_output_nodes"
,
&
GraphView
::
outputNodes
,
...
...
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