SyTen

◆ enable_autodiff()

Autodiff::STensorId syten::STensorImpl::STensor::enable_autodiff ( Autodiff::STensorId  id = 0)

Enables autodifferentation tracing for this STensor, returns the autodiff ID of the tensor.

Parameters
idValue to which to set the autodiff ID. If 0, a generated value greater than 999 is used.

References ad_id, get_autodiff_id(), syten::RepRegister::id(), syten::STensorImpl::make_zero(), std::move(), syten::mve(), syten::STensorImpl::Autodiff::new_id(), syten::STensorImpl::Autodiff::return_first_output_adjoint(), set_autodiff_node(), and SYTEN_ASSERT_MSG.

Referenced by syten::STensorImpl::normSqd(), syten::STensorImpl::qr(), restart_autodiff(), and syten::STensorImpl::svd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: