提交 90076522 编写于 作者: S sneaxiy

fix deallocate bug

test=develop
上级 439af8d5
......@@ -127,9 +127,7 @@ class EigenCudaStreamDevice : public Eigen::StreamInterface {
return retv;
}
void deallocate(void* buffer) const override {
allocations_.erase(allocations_.find(buffer));
}
void deallocate(void* buffer) const override { allocations_.erase(buffer); }
void* scratchpad() const override {
if (scratch_ == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册