felupe
felupe copied to clipboard
Choosable array-backend
Motivation
Easily switch between numpy, jax, torch or even cupy.
Usage
felupe.set_backend(numpy)
SmallPebble has a nice implementation: https://github.com/sradc/SmallPebble/blob/main/smallpebble/array_library.py