提交 11e92317 编写于 作者: Q qijun

reset a new tensor in default constructor of SelectedRows

上级 4b13c80e
...@@ -22,7 +22,7 @@ class SelectedRows { ...@@ -22,7 +22,7 @@ class SelectedRows {
value_.reset(new Tensor()); value_.reset(new Tensor());
} }
SelectedRows() {} SelectedRows() { value_.reset(new Tensor()); }
platform::Place place() const { return value_->place(); } platform::Place place() const { return value_->place(); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册