未验证 提交 14536d0f 编写于 作者: J Jiabin Yang 提交者: GitHub

fix pylayer copy error (#47154)

上级 0521af4e
......@@ -34,6 +34,13 @@ class GradNodePyLayer : public GradNodeBase {
Py_INCREF(ctx_);
}
GradNodePyLayer(const GradNodePyLayer& other) : GradNodeBase(other) {
this->ctx_ = other.ctx_;
Py_INCREF(this->ctx_);
this->forward_outputs_meta_ = other.forward_outputs_meta_;
this->forward_outputs_place_ = other.forward_outputs_place_;
}
~GradNodePyLayer() override;
virtual paddle::small_vector<std::vector<paddle::experimental::Tensor>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册