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
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
Charles Villard
aidge_core
Commits
cff451cd
Commit
cff451cd
authored
6 months ago
by
Cyril Moineau
Browse files
Options
Downloads
Patches
Plain Diff
[NodeExport] Update error message when no input dims.
parent
661b40e7
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
aidge_core/export_utils/node_export.py
+2
-2
2 additions, 2 deletions
aidge_core/export_utils/node_export.py
with
2 additions
and
2 deletions
aidge_core/export_utils/node_export.py
+
2
−
2
View file @
cff451cd
...
@@ -203,7 +203,7 @@ class ExportNode(ABC):
...
@@ -203,7 +203,7 @@ class ExportNode(ABC):
self
.
operator
.
input_category
(
idx
)
==
aidge_core
.
InputCategory
.
OptionalData
:
self
.
operator
.
input_category
(
idx
)
==
aidge_core
.
InputCategory
.
OptionalData
:
pass
pass
else
:
else
:
ai
dge_core
.
Log
.
notice
(
f
"
No input for
{
self
.
node
.
name
()
}
at input
{
idx
}
"
)
r
ai
se
RuntimeError
(
f
"
No input for
{
self
.
node
.
name
()
}
at input
{
idx
}
, did you forget to forward dims?
"
)
for
idx
,
list_child_node_in_id
in
enumerate
(
self
.
node
.
outputs
()):
for
idx
,
list_child_node_in_id
in
enumerate
(
self
.
node
.
outputs
()):
self
.
outputs
+=
[
node_in_id
[
0
]
self
.
outputs
+=
[
node_in_id
[
0
]
for
node_in_id
in
list_child_node_in_id
]
for
node_in_id
in
list_child_node_in_id
]
...
@@ -256,7 +256,7 @@ class ExportNode(ABC):
...
@@ -256,7 +256,7 @@ class ExportNode(ABC):
else
:
else
:
self
.
attributes
[
"
mem_info_wrap_size
"
][
idx
]
=
0
self
.
attributes
[
"
mem_info_wrap_size
"
][
idx
]
=
0
else
:
else
:
ai
dge_core
.
Log
.
notice
(
f
"
No output for
{
self
.
node
.
name
()
}
"
)
r
ai
se
RuntimeError
(
f
"
No output for
{
self
.
node
.
name
()
}
"
)
class
ExportNodeCpp
(
ExportNode
):
class
ExportNodeCpp
(
ExportNode
):
# Path to the template defining how to export the node definition
# Path to the template defining how to export the node definition
...
...
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