Skip to content

Commit

Permalink
fix share buffer to
Browse files Browse the repository at this point in the history
  • Loading branch information
Baibaifan committed Dec 23, 2021
1 parent 8da9eff commit 57eacfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paddle/fluid/pybind/imperative.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,7 @@ void BindImperative(py::module *m_ptr) {
platform::errors::InvalidArgument(
"Tensor %s has not been initialized!", self->Name()));
dst_->ShareBufferWith(*src);
dst_->ShareDataTypeWith(*src);
})
.def("_is_shared_buffer_with",
[](const std::shared_ptr<imperative::VarBase> &self,
Expand Down

1 comment on commit 57eacfc

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.