From 16c28d0818955cbff5d29b35416d3014641e46db Mon Sep 17 00:00:00 2001 From: Liangfu Chen <chenclf@gmail.com> Date: Wed, 31 Jan 2018 00:56:50 +0800 Subject: [PATCH] improved empty set definition (#346) fix similar problem like https://github.com/apache/incubator-mxnet/pull/4589/files . --- nnvm/src/top/op_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnvm/src/top/op_common.h b/nnvm/src/top/op_common.h index ee6b7ced3..ae4388ade 100644 --- a/nnvm/src/top/op_common.h +++ b/nnvm/src/top/op_common.h @@ -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"; -- GitLab