Optimize tensor data
Replace std::vector<T> with std::unique_ptr<T[]> for tensor data storage, it prevent unintended data initialization when data is lazy allocated.
Showing
想要评论请 注册 或 登录
Replace std::vector<T> with std::unique_ptr<T[]> for tensor data storage, it prevent unintended data initialization when data is lazy allocated.