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

Method Forward

src/model/layer/split.cc:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35const vector<Tensor> Split::Forward(int flag, const vector<Tensor>& inputs) {
36 vector<Tensor> outputs;
37 CHECK_EQ(inputs.size(), 1u) << "Split layer only have one input tensor.";
38 for (size_t i = 0; i < output_size_; i++)
39 outputs.push_back(inputs.at(0));
40 return outputs;
41}
42
43const std::pair<vector<Tensor>, vector<Tensor>> Split::Backward(
44 int flag, const vector<Tensor>& grads) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected