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

Commit

Permalink
update nnvm version (#3290)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored Sep 13, 2016
1 parent cf2d9cd commit 3dad068
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/executor/graph_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Graph GraphExecutor::InitGraph(nnvm::Symbol symbol,
// other initializations
g = nnvm::pass::InferShape(g, arg_shapes, "__shape__");
g = nnvm::pass::InferType(g, arg_types);
g = nnvm::ApplyPass(g, {"PlanMemory"});
g = nnvm::ApplyPass(g, "PlanMemory");
return g;
}

Expand Down
2 changes: 1 addition & 1 deletion src/nnvm/legacy_op_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ inline std::vector<NodeEntry> OpPropGradient(
gnode->attrs = ptr->attrs;
gnode->attrs.op = back_op;
gnode->attrs.name = ptr->attrs.name + "_backward";
std::vector<NodeEntry> in_grad(prop.inputs.size());
std::vector<NodeEntry> in_grad(prop.arguments.size());
for (uint32_t i = 0; i < prop.arguments.size(); ++i) {
in_grad[i] = NodeEntry{gnode, i, 0};
}
Expand Down

0 comments on commit 3dad068

Please sign in to comment.