-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[REVIEW]add the dynamic input port meta check #139
Conversation
Release 1.0.4 candidate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good but I got unit tests failures for the performance test. The number of calls changing for meta setup makes sense, but I'm not sure about why the ports_setup calls changes especially the "_node_taskgraph_extension_mixin.ports_setup_ext". Could you please check and fix the unit test. The regression might have happened before we just didn't catch it.
======================================================================
FAIL: test_ports_setup_performance (tests.unit.test_performance.TestPerformance)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/avolkov/projects/gitrepos/cuquant/gQuant/plugins/gquant_plugin/tests/unit/test_performance.py", line 93, in test_ports_setup_performance
self.assertTrue(
AssertionError: False is not true : template_node_mixin.ports_setup is called 77 (expected 61) times.
======================================================================
FAIL: test_meta_setup_performance (tests.unit.test_performance.TestPerformance)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/avolkov/projects/gitrepos/cuquant/gQuant/plugins/gquant_plugin/tests/unit/test_performance.py", line 108, in test_meta_setup_performance
self.assertTrue(
AssertionError: False is not true : _node_flow.meta_setup is called 177 (expected 158) times.
======================================================================
FAIL: test_ports_setup_performance (tests.unit.test_performance.TestPerformance)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/avolkov/projects/gitrepos/cuquant/gQuant/plugins/gquant_plugin/tests/unit/test_performance.py", line 95, in test_ports_setup_performance
self.assertTrue(
AssertionError: False is not true : _node_flow.ports_setup is called 320 (expected 304) times.
======================================================================
FAIL: test_ports_setup_performance (tests.unit.test_performance.TestPerformance)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/avolkov/projects/gitrepos/cuquant/gQuant/plugins/gquant_plugin/tests/unit/test_performance.py", line 96, in test_ports_setup_performance
self.assertTrue(
AssertionError: False is not true : _node_taskgraph_extension_mixin.ports_setup_ext is called 77 (expected 61) times.
----------------------------------------------------------------------
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks. I'll merge this.
In this PR, I added the dynamic input port meta data check. It is calculated based on the
self.conf
information in theself.update
method. Please review.