Skip to content

Commit 9409ff6

Browse files
authored
fix share buffer to (#38407)
1 parent 4b3d519 commit 9409ff6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/pybind/imperative.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,6 +1983,7 @@ void BindImperative(py::module *m_ptr) {
19831983
platform::errors::InvalidArgument(
19841984
"Tensor %s has not been initialized!", self->Name()));
19851985
dst_->ShareBufferWith(*src);
1986+
dst_->ShareDataTypeWith(*src);
19861987
})
19871988
.def("_is_shared_buffer_with",
19881989
[](const std::shared_ptr<imperative::VarBase> &self,

0 commit comments

Comments
 (0)