You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to get memoryview of numpy array of bfloat16, I got this:
>>> from bfloat16 import bfloat16
>>> import numpy as np
>>> a = np.full((2,2), 1, bfloat16)
>>> a
array([[1.000000, 1.000000],
[1.000000, 1.000000]], dtype=bfloat16)
>>> m = memoryview(a)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: cannot include dtype 'E' in a buffer
The text was updated successfully, but these errors were encountered:
When I want to get memoryview of numpy array of bfloat16, I got this:
The text was updated successfully, but these errors were encountered: