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

Matrix oa::FnMatrix::detach( const Matrix & inSelf )
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

inSelf
const Matrix &

Returns

Matrix

The declared return value.