未验证 提交 b2ba830e 编写于 作者: M Michał Gallus 提交者: GitHub

Fix bug in ShareBufferWith causing eltwise_add inplace ut to fail (#24853)

上级 7d0cbfd0
...@@ -158,6 +158,7 @@ class Tensor { ...@@ -158,6 +158,7 @@ class Tensor {
void ShareBufferWith(const Tensor& tensor) { void ShareBufferWith(const Tensor& tensor) {
holder_ = tensor.holder_; holder_ = tensor.holder_;
offset_ = tensor.offset_; offset_ = tensor.offset_;
type_ = tensor.type_;
} }
bool IsSharedBufferWith(const Tensor& src) const { bool IsSharedBufferWith(const Tensor& src) const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册