Open YouJiacheng opened 2 years ago
I may look into this, but at first blush I doubt it is feasible to add a useful promotion truncation warning in the presence of x64=False. The X64 flag is a huge hammer and truncates 64-bit types virtually everywhere throughout the package. Warnings from library code would overwhelm any warnings that users have control over. That said, we do have ideas for similar warning flags as we look to remove the X64 flag entirely.
@jakevdp Hmm. Is there are many promotion in the package?
With
JAX_ENABLE_X64=True
In this table i4 + u4 should produce i8, but without
jax_enable_x64
it will be truncated to i4 silently.