Skip to content

Commit

Permalink
improved empty set definition (dmlc#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfu authored and tqchen committed Jan 30, 2018
1 parent 053f09a commit dd4f6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/top/op_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ inline std::vector<NodeEntry> MakeGradNode(
const char* op_name,
const NodePtr& n,
std::vector<NodeEntry> inputs,
std::unordered_map<std::string, std::string> attr = {}) {
std::unordered_map<std::string, std::string> attr = {{}}) {
NodePtr p = Node::Create();
p->attrs.op = nnvm::Op::Get(op_name);
p->attrs.name = n->attrs.name + "_grad";
Expand Down

0 comments on commit dd4f6a9

Please sign in to comment.