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

Method GetOutputSampleShape

src/model/layer/dense.h:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 /// \copydoc Layer::Setup(const LayerConf&);
34 void Setup(const Shape& in_sample, const LayerConf& conf) override;
35 const Shape GetOutputSampleShape() const override {
36 CHECK(hdim_) << "You may haven't call Setup()";
37 return vector<size_t>{hdim_};
38 }
39
40 /// \copydoc Layer::Forward(int flag, const Tensor&)
41 const Tensor Forward(int flag, const Tensor& input) override;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected