-
|
I'm trying to understand, how does |
Beta Was this translation helpful? Give feedback.
Answered by
jakevdp
Oct 23, 2025
Replies: 1 comment
-
|
The NumPy-compatible import numpy as np
import ml_dtypes
np.arange(10, dtype=ml_dtypes.bfloat16) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
botev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The NumPy-compatible
bfloat16dtype is defined in theml_dtypespackage. You can use it directly like this: