MCPcopy Create free account
hub / github.com/apache/singa / Setup

Method Setup

include/singa/model/initializer.h:73–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 Gaussian() = default;
72 Gaussian(const float m, const float s): mean_(m), std_(s) {}
73 void Setup(const InitializerConf& conf) override {
74 mean_ = conf.mean();
75 std_ = conf.std();
76 }
77 void Fill(Tensor& t) override { singa::Gaussian(mean_, std_, &t); }
78
79 private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected