Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement set_scaling and stop_scaling JAX primitives. #20

Merged
merged 1 commit into from
Nov 17, 2023

Commits on Nov 17, 2023

  1. Implement set_scaling and stop_scaling JAX primitives.

    * `set_scaling`: Set the scaling of a tensor, transforming into `ScaledArray` in `autoscale` mode.
    * `stop_scaling`: Stop scale propagation of a tensor, transforming back into a JAX array.
    
    Both operations are no-op identity operations in normal JAX mode.
    
    Note: as pointed by @DouglasOrr, these primitives could also be formalized as casting operations, where ScaledDtypes are
    properly defined. To be clarified whether it may be a better setting for the JAX implementation!
    balancap committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    07df3b6 View commit details
    Browse the repository at this point in the history