mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Enable Leak Sanitizer (#154584)
It enables Leak Sanitizer and also provides a suppression file. Pull Request resolved: https://github.com/pytorch/pytorch/pull/154584 Approved by: https://github.com/ezyang
This commit is contained in:
@ -844,7 +844,7 @@ inline Variable make_variable_non_differentiable_view(
|
||||
/*version_counter=*/impl::version_counter(base),
|
||||
/*allow_tensor_metadata_change=*/allow_tensor_metadata_change);
|
||||
data_impl_copy->set_autograd_meta(nullptr);
|
||||
return Variable(data_impl_copy);
|
||||
return Variable(std::move(data_impl_copy));
|
||||
}
|
||||
return Variable();
|
||||
}
|
||||
@ -903,7 +903,7 @@ inline Variable make_variable(
|
||||
/*allow_tensor_metadata_change=*/allow_tensor_metadata_change);
|
||||
data_impl_copy->set_autograd_meta(std::make_unique<AutogradMeta>(
|
||||
data_impl_copy.get(), false, std::move(gradient_edge)));
|
||||
return Variable(data_impl_copy);
|
||||
return Variable(std::move(data_impl_copy));
|
||||
}
|
||||
return Variable();
|
||||
}
|
||||
|
Reference in New Issue
Block a user