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

Method Setup

src/model/layer/softmax.cc:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24RegisterLayerClass(singacuda_softmax, Softmax);
25RegisterLayerClass(singacl_softmax, Softmax);
26void Softmax::Setup(const Shape& in_sample, const LayerConf& conf) {
27 Layer::Setup(in_sample, conf);
28 CHECK_EQ(in_sample.size(), 1u);
29 out_sample_shape_ = in_sample;
30}
31
32const Tensor Softmax::Forward(int flag, const Tensor& input) {
33 CHECK_LE(input.nDim(), 2u);

Callers

nothing calls this directly

Calls 2

SetupFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected