Skip to content
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

Merged
merged 4 commits into from
Jun 7, 2021

Conversation

yidong72
Copy link
Collaborator

@yidong72 yidong72 commented Jun 7, 2021

In this PR, I added the dynamic input port meta data check. It is calculated based on the self.conf information in the self.update method. Please review.

@yidong72 yidong72 requested a review from avolkov1 June 7, 2021 15:19
Copy link
Contributor

@avolkov1 avolkov1 left a 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.

----------------------------------------------------------------------

@avolkov1 avolkov1 self-assigned this Jun 7, 2021
Copy link
Contributor

@avolkov1 avolkov1 left a 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.

@avolkov1 avolkov1 merged commit 43a6920 into NVIDIA:develop Jun 7, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants