Skip to content

Conversation

@cetagostini
Copy link
Contributor

Description

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

jessegrabowski and others added 3 commits October 23, 2025 21:01
Adds normalize_indices_for_mlx to convert NumPy integer and float types, MLX scalar arrays, and slice components to Python int/float for MLX compatibility. Updates all MLX Subtensor and IncSubtensor dispatch functions to use this normalization, resolving errors with np.int64 indices and slices. Expands tests to cover various np.int64 and NumPy scalar indexing scenarios, including original failing cases.
Normalize indices and slice components to Python int in MLX subtensor dispatch to address strict MLX requirements. Update tests to cover np.int64 indices and slices, ensuring compatibility and resolving previous failures with advanced and incremental subtensor operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants