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.
id | Value to which to set the autodiff ID. If 0, a generated value greater than 999 is used. |
References disable_autodiff(), and enable_autodiff().