Issue #48: Replace deprecated .graph.input/output[0].name with get_global_in/out methods#1494
Issue #48: Replace deprecated .graph.input/output[0].name with get_global_in/out methods#1494rothej wants to merge 4 commits intoXilinx:devfrom
Conversation
… get_global_in/out methods. Added unit test tests/util/test_modelwrapper.py Signed-off-by: Joshua Rothe <joshrothe@gmail.com>
…sing failures when running quicktest in docker Signed-off-by: Joshua Rothe <joshrothe@gmail.com>
Signed-off-by: Joshua Rothe <joshrothe@gmail.com>
|
Using All instances of old pattern were replaced with the new pattern in the codebase. |
|
Hi @rothej, Since it is defined in qonnx, the usual workflow is:
Would you mind following that structure and first creating a PR to qonnx main that adds those new class methods, instead of adding them on top of modelwrapper inside FINN? I’m sure other users would also appreciate having those new class methods available directly in qonnx. |
|
@auphelia not a problem! I'll go ahead and do that |
|
Pushed a PR for qonnx, once merged I will use that commit to finish fixing this issue. fastmachinelearning/qonnx#225 |
Signed-off-by: Joshua Rothe <21348884+rothej@users.noreply.github.com>
|
@auphelia Ive finished this issue! When running run-docker.sh quicktest, there is one error that wasn't there before. Error appears to be because ApplyConfig was removed from qonnx and put into FINN. I updated test_general_transformation.py here in this PR, since I am considering it a part of this qonnx hash update. Just needed to fix imports for that one item. If this is bad practice for this repo please let me know, happy to adjust! General note: After the updates, ran: and tests pass as before. |
Added unit tests in
tests/util/test_modelwrapper.py. All pre-commit hooks pass, new unit tests verify the helper methods works.Fixes #48