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

Method Backward

src/model/layer/rnn.cc:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91const std::pair<vector<Tensor>, vector<Tensor>> RNN::Backward(int flag,
92 const vector<Tensor>& grads) {
93 vector<Tensor> param_grad;
94 vector<Tensor> data_grad;
95 LOG(FATAL) << "CPU RNN is not implemented!";
96 return std::make_pair(data_grad, param_grad);
97}
98
99void RNN::ToDevice(std::shared_ptr<Device> device) {
100 Layer::ToDevice(device);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected