Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add comment on correctness of 2nd order grad
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Jun 5, 2019
1 parent ade77d5 commit 745ea66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/operator/nn/fully_connected.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ struct FullyConnectedGrad {
std::vector<nnvm::NodeEntry> FullyConnectedBackwardGrad(
const nnvm::NodePtr& n,
const std::vector<nnvm::NodeEntry>& ograds) {
// Note this is not strictly correct but we don't expect inputs to depend on weights at the
// moment. If you find such a case, please contribute a more elaborate implementation.
std::vector<nnvm::NodeEntry> ret;
size_t i = 0;
for (const auto& x : n->inputs) {
Expand Down

0 comments on commit 745ea66

Please sign in to comment.