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

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Apr 24, 2019
1 parent 0015be4 commit 01e6c92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/operator/nn/fully_connected.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ struct FullyConnectedGrad {
};


std::vector<nnvm::NodeEntry> FullyConnectedBackwardGrad(const nnvm::NodePtr& n,
const std::vector<nnvm::NodeEntry>& ograds) {
std::vector<nnvm::NodeEntry> FullyConnectedBackwardGrad(
const nnvm::NodePtr& n,
const std::vector<nnvm::NodeEntry>& ograds) {
std::vector<nnvm::NodeEntry> ret;
size_t i = 0;
for (const auto& x: n->inputs) {
for (const auto& x : n->inputs) {
std::ostringstream os;
os << n->attrs.name << "_backward_" << i;
ret.emplace_back(nnvm::NodeEntry{MakeNode("zeros_like", os.str(), {x}, nullptr, &n), 0, 0});
Expand Down

0 comments on commit 01e6c92

Please sign in to comment.