MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / SetGradNode

Method SetGradNode

paddle/fluid/eager/grad_node_info.cc:1021–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021void Edge::SetGradNode(const std::shared_ptr<GradNodeBase>& node) {
1022 VLOG(7) << "Resetting Edge(" << this << ")'s Grad Node"
1023 << " from " << (grad_node_ ? grad_node_->name() : "nullptr") << "("
1024 << grad_node_.get() << ") to " << (node ? node->name() : "nullptr")
1025 << "(" << node.get() << ")";
1026 grad_node_ = node;
1027}
1028
1029} // namespace egr

Callers 15

recoverMethod · 0.45
SetHistoryMethod · 0.45
CopyBackwardGraphMethod · 0.45
SetGradOutMetaMethod · 0.45
SetEdgeMethod · 0.45
CopyValueFromTensorMethod · 0.45
AttachAutoGradMetaFunction · 0.45
CreateTensorFromVarDescFunction · 0.45
InitializedEmptyTensorFunction · 0.45

Calls 2

nameMethod · 0.45
getMethod · 0.45

Tested by 8

CreateTensorWithValueFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36