提交 d0b13abf 编写于 作者: H Hong Ming 提交者: Tensor Tang

enable conv_winograd, fix conv_gemmlike bug, and update the unit tests of conv op

test=develop
上级 95d98f59
......@@ -65,6 +65,8 @@ class Buffer {
TargetCopy(target_, data_, other.data_, nbytes);
}
~Buffer() { Free(); }
private:
// memory it actually malloced.
size_t space_{0};
......
......@@ -34,7 +34,6 @@ class Any {
CHECK(type_ == typeid(T).hash_code());
} else {
type_ = typeid(T).hash_code();
data_ = new T;
deleter_ = [&] { delete static_cast<T*>(data_); };
}
data_ = new T;
......@@ -55,10 +54,16 @@ class Any {
bool valid() const { return data_; }
~Any() {
if (valid()) {
deleter_();
}
}
private:
static size_t kInvalidType;
size_t type_{kInvalidType};
void* data_{};
void* data_{nullptr};
std::function<void()> deleter_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册