Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectors #14

Open
mlajtos opened this issue Jun 29, 2017 · 1 comment
Open

Selectors #14

mlajtos opened this issue Jun 29, 2017 · 1 comment
Labels

Comments

@mlajtos
Copy link
Owner

mlajtos commented Jun 29, 2017

Some time ago, there was an idea for selectors as a more powerful mechanism for targeting specific nodes. Now, one can pinpoint only the node that has an identifier attached. Selectors (as known from CSS) would allow to match more than one node. For example:

c1:Conv
c2:Conv
In -> [c1,c2] -> Out

could be replaced by:

c1:Conv
c2:Conv
In -> |c*| -> Out

Matching should be also possible by node type. This is also equivalent to previous example:

Conv Conv
In -> |Conv| -> Out

Also combining the two:

c1:Conv
c2:Conv
In -> |c*:Conv| -> Out

Selectors should be really handy for inspecting nodes. For example, if one would like to inspect all ReLU nodes for dead neurons, you should just write:

|ReLU| -> Inspect

Of course, paths should be also supported:

metanode:{ ... }
|metanode/*| -> Inspect

However there are some open questions:

  • On what level should selector act? If I want to inspect all ReLU nodes in current metanode vs. inspecting all ReLU nodes..
  • What wild cards should be supported? Or maybe regexes?
  • What about matching against parameters?
@mlajtos
Copy link
Owner Author

mlajtos commented Oct 26, 2017

  1. Definitely notation should not be |mu|
  2. If it would be /mu/ it would be awesome - regex evocation, visually not palindromatic (because glyph / is asymetric)
  3. group:/ReLU/ :D
  4. g:/g:X/ 🙃
  5. (Maybe matching against identifier is bit idiotic?)
  6. But definitely selector must be identifiable
  7. Generators are the other half of the problem.
  8. Still no clue about parameters ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant