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

revert-24981-add_device_attr_for_regulization
Michał Gallus 6 years ago committed by GitHub
parent 7d0cbfd045
commit b2ba830eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -158,6 +158,7 @@ class Tensor {
void ShareBufferWith(const Tensor& tensor) {
holder_ = tensor.holder_;
offset_ = tensor.offset_;
type_ = tensor.type_;
}
bool IsSharedBufferWith(const Tensor& src) const {

Loading…
Cancel
Save