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

Support for flow control #51

Open
DrChainsaw opened this issue Oct 6, 2019 · 0 comments
Open

Support for flow control #51

DrChainsaw opened this issue Oct 6, 2019 · 0 comments

Comments

@DrChainsaw
Copy link
Owner

There is currently very limited (at best) support for controlling the program flow (e.g. compute this x-times or compute this if y, else that, neural ODEs etc.).

A possible approach is to implement some kind of "graph in vertex" concept, where the computation of a vertex may consist of one or more graphs (which may in turn be mutated just as any other graph).

Some of the things needed of the top of my head:

  1. Not too cumbersome way to combine graph(s) and control flow so that graphs are accessible for mutation.
    -Maybe a struct with graphs and computation (which uses those graphs in an arbitrary way) as separate fields is enough.
  2. Ability to tie sizes of arbitrary vertices together.
    -For example, looping the output back as input obviously requires that output size is same as input size.
    -A use graph1 if x, else graph2 type of vertex also requires that both graph1 and graph2 are aligned with the input/output size of the vertex they are inside.
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

No branches or pull requests

1 participant