Skip to content

Should we add some syntax suger to graph make the methods inputs() more readable? #1441

Open
@psyyz10

Description

@psyyz10

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions