MCPcopy Create free account
hub / github.com/ml-explore/mlx / reverse_sequence

Method reverse_sequence

python/tests/test_conv.py:932–934  ·  view source on GitHub ↗
(xs, axis=0)

Source from the content-addressed store, hash-verified

930 ).sum()
931
932 def reverse_sequence(xs, axis=0):
933 indices = mx.arange(xs.shape[axis] - 1, -1, -1)
934 return mx.take(xs, indices, axis=axis)
935
936 def conv_manual_flip(kernel):
937 for ax in range(1, kernel.ndim - 1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected