File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
docs/doc_sources/api_reference/dpctl Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ .. _dpctl_tensor_constants :
2
+
3
+ Constants
4
+ ========================
5
+
6
+ The following constants are defined in :py:mod: `dpctl.tensor `:
7
+
8
+ .. currentmodule :: dpctl.tensor
9
+
10
+ .. autodata :: DLDeviceType
11
+
12
+ .. data :: e
13
+
14
+ ``float ``:
15
+ IEEE 754 floating-point representation of Euler's constant.
16
+
17
+ .. data :: inf
18
+
19
+ ``float ``:
20
+ IEEE 754 floating-point representation of (positive) infinity.
21
+
22
+ .. data :: nan
23
+
24
+ ``float ``:
25
+ IEEE 754 floating-point representation of Not a Number (NaN).
26
+
27
+ .. data :: newaxis
28
+
29
+ ``NoneType ``:
30
+ Alias for ``None `` which is useful for indexing.
31
+
32
+ .. data :: pi
33
+
34
+ ``float ``:
35
+ IEEE 754 floating-point representation of the mathematical constant π.
36
+
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ This module contains:
29
29
* :ref: `sorting functions <dpctl_tensor_sorting_functions >`
30
30
* :ref: `statistical functions <dpctl_tensor_statistical_functions >`
31
31
* :ref: `utility functions <dpctl_tensor_utility_functions >`
32
+ * :ref: `constants <dpctl_tensor_constants >`
32
33
33
34
34
35
.. toctree ::
@@ -48,3 +49,4 @@ This module contains:
48
49
tensor.sorting_functions
49
50
tensor.statistical_functions
50
51
tensor.utility_functions
52
+ tensor.constants
Original file line number Diff line number Diff line change @@ -1278,6 +1278,8 @@ cdef class usm_ndarray:
1278
1278
The tuple describes the non-partitioned device where the array has been allocated,
1279
1279
or the non-partitioned parent device of the allocation device.
1280
1280
1281
+ See ``DLDeviceType`` for a list of devices supported by the DLPack protocol.
1282
+
1281
1283
Raises:
1282
1284
DLPackCreationError:
1283
1285
when the ``device_id`` could not be determined.
You can’t perform that action at this time.
0 commit comments