Streamlining JAX's codebase and reducing boilerplate code #24035
Unanswered
carlosgmartin
asked this question in
General
Replies: 1 comment 6 replies
-
All those helper functions are the result of refactoring the codebase to eliminate boilerplate 😁 But in all seriousness, I'd be happy to revisit these. One thing I'd thought about doing was having a single combined utility to call Did you have any specific ideas? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Meta-question inspired by this PR:
Much of JAX's codebase uses boilerplate like
check_arraylike
(though not always),promote_args
,promote_args_inexact
,lax.convert_element_type
, ajax.jit
wrapper around functions (not always), etc.For examples of these in use, see jax/_src/numpy/ufuncs.py.
Might there be a way to refactor the codebase so that most of this boilerplate can be eliminated?
Beta Was this translation helpful? Give feedback.
All reactions