Skip to content

Selectors #14

Description

@mlajtos

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions