SyTen

◆ new_autodiff_id()

Autodiff::STensorId syten::STensorImpl::STensorProxy::new_autodiff_id ( )

Generates a new autodiff ID for the proxy.

This resets the compute node of the tensor to nullptr, which causes it to be in an invalid state until set_autodiff_node() was called on it. Do not access the *_autodiff_* functions between calls to randomise_autodiff() and set_autodiff_node().

References ad_compute_node, ad_id, and syten::STensorImpl::Autodiff::new_id().

Referenced by get_and_renew_autodiff().

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