Skip to content
fn

gradient

→tuple[Tensor, ...]
gradient(input: Tensor, spacing: _float | Sequence[_float | Tensor] | Tensor | None = ..., dim: _int | Sequence[_int] | None = ..., edge_order: _int = ...)