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

Method RandomNormal

dynet/nodes-random.h:20–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18// draw random noise from Normal(0, 1)
19struct RandomNormal : public Node {
20 explicit RandomNormal(const Dim& d, float m=0.f, float s=1.f) : dim(d), mean(m), stddev(s) {}
21 DYNET_NODE_DEFINE_DEV_IMPL()
22 virtual bool supports_multibatch() const override { return true; }
23 Dim dim;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected