MCPcopy Create free account
hub / github.com/clab/dynet / inputVector

Function inputVector

python/dynet_viz.py:245–245  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

243def scalarInput(s): return GVExpr('scalarInput', [s], make_dim(1, inferred=True))
244def vecInput(dim): return GVExpr('vecInput', [dim], make_dim(dim))
245def inputVector(v): return GVExpr('inputVector', [v], make_dim(len(v), inferred=True))
246def matInput(d1, d2): return GVExpr('matInput', [d1, d2], make_dim(d1, d2))
247def inputMatrix(v, d): return GVExpr('inputMatrix', [v, d], make_dim(d, inferred=True))
248def lookup(p, index=0, update=True): return GVExpr('lookup', [p, index, update], p.dim)

Callers 1

dynet.cppFile · 0.85

Calls 2

GVExprFunction · 0.85
make_dimFunction · 0.85

Tested by

no test coverage detected