SyTen

◆ restart_autodiff()

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

Toggles autodifferentiation tracing for this STensor by disabling and enabling it, returns the new 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 disable_autodiff(), and enable_autodiff().

+ Here is the call graph for this function: