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

Method Backward

src/model/layer/flatten.cc:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49const std::pair<Tensor, vector<Tensor> > Flatten::Backward(int flag,
50 const Tensor &grad) {
51 vector<Tensor> param_grad;
52 Tensor input_grad = Reshape(grad, input_shape_);
53 return std::make_pair(input_grad, param_grad);
54}
55
56} // namespace singa

Callers

nothing calls this directly

Calls 1

ReshapeFunction · 0.50

Tested by

no test coverage detected