未验证 提交 9409ff6b 编写于 作者: B Baibaifan 提交者: GitHub

fix share buffer to (#38407)

上级 4b3d5195
......@@ -1983,6 +1983,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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册