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

Class Gaussian

include/singa/model/initializer.h:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69class Gaussian : public Initializer {
70public:
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:
80 float mean_ = 0, std_ = 1;
81};
82
83/// Ref: [Bengio and Glorot 2010] Understanding the difficulty of training deep
84/// feedforward neural networks

Callers 2

FillMethod · 0.70
FillMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected