We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a408c2a commit 81cd2a4Copy full SHA for 81cd2a4
dpnp/dpnp_array.py
@@ -185,6 +185,10 @@ def __bool__(self, /):
185
"""``True`` if `self` else ``False``."""
186
return self._array_obj.__bool__()
187
188
+ def __bytes__(self):
189
+ r"""Return :math:`\text{bytes(self)}`."""
190
+ return bytes(self.asnumpy())
191
+
192
# '__class__',
193
# `__class_getitem__`,
194
0 commit comments