Skip to content
Discussion options

You must be logged in to vote

You are doing a couple things strangely that are likely causing issues:

  1. Using Python max instead of mx.maximum
  2. idx is an mx.array and not supported with Python style slicing (even scalar arrays won't work there). I'm not sure if we will add that, it's possible we could but for now, best to avoid it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LeonEricsson
Comment options

@awni
Comment options

awni Jan 24, 2024
Maintainer

Answer selected by LeonEricsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants