HF RL Explorer

Calling NpyIter GetIterNext from Cython via the bundled numpy pxd doesn't work

Calling NpyIter GetIterNext from Cython via the bundled numpy pxd doesn't work: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). I'm trying to use NumPy's NpyIter C API from a Cython extension to iterate over an ndarray efficiently. The standard idiom (straight out…

The task

I'm trying to use NumPy's NpyIter C API from a Cython extension to iterate over an ndarray efficiently. The standard idiom (straight out of the NumPy C-API docs) is to grab an `iternext` function via `NpyIter_GetIterNext` and call it in a loop.

Part of FineEnvs/MiMo-V2.6-RL-harbor-code.