mlajtos / moniel

Interactive Notation for Computational Graphs
https://mlajtos.github.io/moniel/
MIT License
356 stars 27 forks source link

Multiple inputs and outputs (for RNNs) #7

Closed spro closed 7 years ago

spro commented 7 years ago

Is there a way to represent multiple inputs and outputs for a single block? E.g. if I have a "input" and "prev_hidden" for a RNN module. The following is my best guess, but isn't right:

+RecurrentNeuralNetwork {
    in: Input
    prev_hidden: Input
    out: Output
    next_hidden: Output
    [in, prev_hidden] -> combine:Linear -> [out, next_hidden]
}

[in:Input, prev_hidden:Input] -> rnn1:RNN -> rnn2:RNN

mlajtos commented 7 years ago

So you wanted to create something similar to this?

screenshot 2017-02-21 01 19 58

But these kind of diagrams are better when they are sideways: screenshot 2017-02-21 01 56 34

spro commented 7 years ago

Yes, exactly that.

spro commented 7 years ago

By the way, how do you change it to horizontal?

mlajtos commented 7 years ago

0.) git pull 1.) View -> Toggle Developer Tools 2.) localStorage.setItem(“layout”, “rows”); 3.) View -> Reload 1.) screenshot 2017-03-26 22 46 05