aidge_core.aidge_core.Node object has no attribute get_data_inputs
Required prerequisites
-
Make sure you've read the documentation. Your issue may be addressed there. -
Search the issue tracker and discussions to verify that this hasn't already been reported. +1 or comment there if it has.
What commit version of aidge do you use
-
aidge_core
: 0.5.0 -
aidge_onnx
: 0.4.1
Problem description
Expected behavior:
- The function
get_data_inputs()
should be a member function of aidge_node, allowing the code to retrieve the number of inputs for a given node.
Actual behavior:
- The code fails because
get_data_inputs()
is not a member function of aidge_node. However, usingget_nb_inputs()
works correctly.
Traceback (most recent call last):
File "export.py", line 280, in <module>
aidge_onnx.export_onnx(
File "env/lib/python3.10/site-packages/aidge_onnx/onnx_export.py", line 258, in export_onnx
f"Graph input: {old_io_names[aidge_node]} has been described with {len(inputs_dims[old_io_names[aidge_node]])} inputs but it has {aidge_node.get_data_inputs().size()} inputs.")
AttributeError: 'aidge_core.aidge_core.Node' object has no attribute 'get_data_inputs'. Did you mean: 'get_nb_inputs'?