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

Method Setup

src/model/layer/split.cc:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26RegisterLayerClass(singacl_split, Split);
27
28void Split::Setup(const Shape& in_sample, const LayerConf& conf) {
29 Layer::Setup(in_sample, conf);
30 SplitConf split_conf = conf.split_conf();
31 output_size_ = split_conf.output_size();
32 out_sample_shape_ = in_sample;
33}
34
35const vector<Tensor> Split::Forward(int flag, const vector<Tensor>& inputs) {
36 vector<Tensor> outputs;

Callers

nothing calls this directly

Calls 2

SetupFunction · 0.85
output_sizeMethod · 0.80

Tested by

no test coverage detected