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

Method SparseInputNode

dynet/param-nodes.h:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55// be fixed in the future.
56struct SparseInputNode : public Node {
57 explicit SparseInputNode(const Dim& d, const std::vector<unsigned int>& id,
58 const std::vector<float>& dat, float defdat = 0.f)
59 : dim(d), ids(id), data(dat), defdata(defdat) {}
60 DYNET_NODE_DEFINE_DEV_IMPL()
61 virtual bool supports_multibatch() const override { return true; }
62 Dim dim;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected