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

Method Setup

include/singa/model/initializer.h:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 Uniform() = default;
58 Uniform(const float low, const float high) : min_(low), max_(high) {}
59 void Setup(const InitializerConf& conf) override {
60 min_ = conf.min();
61 max_ = conf.max();
62 }
63 void Fill(Tensor& t) override { singa::Uniform(min_, max_, &t); }
64
65 private:

Callers 1

CreateInitializerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected