Skip to content

Conversation

@nitishgupta
Copy link

Added function for collecting variables that contain the given name_scope in their scope hierarchy without having to give the complete scope hierarchy.
Eg. If var in input var_type collection has var.name = 'scope1/scope2/scope3/var_name:4'
Then name_scope='scope2' will collect this variable instead of having to give scope1/scope2 has input.
Also if scope_i, scope_n, scope_m all contain scope2 within it, collecting all variables of scope_2 requires multiple calls to existing functions. With this it can be done with one call.

@jrock08
Copy link
Collaborator

jrock08 commented Sep 10, 2016

This looks good. I don't think I have any changes (was going to say something about comments, but the others in this don't have them), but please add tests at: https://github.com/aiUIUC/pyAIUtils/blob/master/tests/test_tftools.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants