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

Method Setup

src/model/layer/prelu.cc:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25RegisterLayerClass(singacuda_prelu, PReLU);
26RegisterLayerClass(singacl_prelu, PReLU);
27void PReLU::Setup(const Shape& in_sample, const LayerConf &conf) {
28 Layer::Setup(in_sample, conf);
29 out_sample_shape_ = in_sample;
30 channel_shared_ = conf.prelu_conf().channel_shared();
31 format_ = conf.prelu_conf().format();
32 // Push back params into param_values_
33 for (const auto &spec : conf.param()) param_specs_.push_back(spec);
34// param_values_.push_back(a_);
35}
36
37const Tensor PReLU::Forward(int flag, const Tensor &input) {
38 Tensor output;

Callers

nothing calls this directly

Calls 1

SetupFunction · 0.85

Tested by

no test coverage detected