Fix a bug in Tensor::equals()
1. Check if data_ is null before compare it; 2. Always allocate an array for data_ even if size is zero.
Showing
想要评论请 注册 或 登录
1. Check if data_ is null before compare it; 2. Always allocate an array for data_ even if size is zero.