DiffΒΆ
Computes the n-th discrete difference along the given dimension.
Abstract Signature:
Diff(input: Tensor, n: int = 1, dim: int = -1, prepend: Tensor, append: Tensor)
Apple MLX
API:
βStrategy: Custom / Partial
Computes the n-th discrete difference along the given dimension.
Abstract Signature:
Diff(input: Tensor, n: int = 1, dim: int = -1, prepend: Tensor, append: Tensor)
β