oa::FnMatrix::detach
detach: stop-gradient. Returns a view that SHARES inSelf's device buffer but carries no autograd linkage (leaf, requiresGrad=false), so backward terminates here. Metadata-only: no kernel, no copy. This is the primitive the straight- through estimator needs.
Function Documentation
detach: stop-gradient. Returns a view that SHARES inSelf's device buffer but carries no autograd linkage (leaf, requiresGrad=false), so backward terminates here. Metadata-only: no kernel, no copy. This is the primitive the straight- through estimator needs.
Parameters
inSelfconst Matrix &—
Returns
MatrixThe declared return value.