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

bfloat16s (at least) throw error when given a format specifiier #134

Open
colehaus opened this issue Jan 8, 2024 · 0 comments
Open

bfloat16s (at least) throw error when given a format specifiier #134

colehaus opened this issue Jan 8, 2024 · 0 comments

Comments

@colehaus
Copy link

colehaus commented Jan 8, 2024

>>> import jax
>>> jax.__version__
'0.4.21'
>>> from jax.dtypes import bfloat16
>>> f"{bfloat16(1)]}"
'1'
>>> f"{bfloat16(1):.2f}"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'f' for object of type 'str'

This is a little surprising to me and, in a larger context, the error message isn't very suggestive about what or where the error is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant