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

Method Fill

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

Source from the content-addressed store, hash-verified

47 Constant(const float x) : v_(x) {}
48 void Setup(const InitializerConf& conf) override { v_ = conf.value(); }
49 void Fill(Tensor& t) override { t.SetValue(v_); }
50
51 private:
52 float v_ = 0;

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.45

Tested by

no test coverage detected