MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / current_grad

Method current_grad

oneflow/core/framework/tensor_impl.cpp:54–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52Maybe<Tensor> TensorImpl::acc_grad() const { return autograd_meta_->acc_grad(); }
53
54Maybe<TensorArg> TensorImpl::current_grad() const { return autograd_meta_->current_grad(); }
55
56Maybe<void> TensorImpl::set_acc_grad(const std::shared_ptr<Tensor>& grad) {
57 return autograd_meta_->set_acc_grad(grad);

Callers 5

IsReadyToRunFunction · 0.45
ReleaseOutTensorArgsMethod · 0.45
ApplyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected