Commit 16c28d08 by Liangfu Chen Committed by Tianqi Chen

improved empty set definition (#346)

fix similar problem like https://github.com/apache/incubator-mxnet/pull/4589/files .
parent 70231011
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment