Skip to content
class

AsStridedBackward

AsStridedBackward

Python wrappers

Public Python APIs implemented by this engine symbol.

Backward of as_strided_op.

The view reads input elements at positions the caller chose, so the gradient scatter-adds, into zeros the shape of the input, at those positions — a position read twice collects both. It keeps the positions (I32, one per view element), never the input's values.

Methods

3
fn

apply_for_graph

int apply_for_graph(const int & grad_out)