Open
Description
Should we add some syntax suger to graph make the methods inputs()
more readable?
For example:
val i2h = Narrow(..).inputs(input1)
val drop = Dropout(p).inputs(input2)
val h2h = Linear(..).inputs(drop)
val cadd = CAddTable().inputs(i2h, h2h)
val tanh = Tanh().inputs(cadd)
can be replaced by something like:
val model = (
input1 -> Narrow(..),
input2 -> Dropout(p) -> Linear(..)
) -> CAddTable() -> Tanh()