15
15
16
16
class __array_namespace_info__ :
17
17
"""
18
- Get the array API inspection namespace for PyTorch .
18
+ Get the array API inspection namespace for Paddle .
19
19
20
20
The array API inspection namespace defines the following functions:
21
21
@@ -32,7 +32,7 @@ class __array_namespace_info__:
32
32
Returns
33
33
-------
34
34
info : ModuleType
35
- The array API inspection namespace for PyTorch .
35
+ The array API inspection namespace for Paddle .
36
36
37
37
Examples
38
38
--------
@@ -54,11 +54,11 @@ def capabilities(self):
54
54
The resulting dictionary has the following keys:
55
55
56
56
- **"boolean indexing"**: boolean indicating whether an array library
57
- supports boolean indexing. Always ``True`` for PyTorch .
57
+ supports boolean indexing. Always ``True`` for Paddle .
58
58
59
59
- **"data-dependent shapes"**: boolean indicating whether an array
60
60
library supports data-dependent output shapes. Always ``True`` for
61
- PyTorch .
61
+ Paddle .
62
62
63
63
See
64
64
https://data-apis.org/array-api/latest/API_specification/generated/array_api.info.capabilities.html
@@ -93,7 +93,7 @@ def capabilities(self):
93
93
94
94
def default_device (self ):
95
95
"""
96
- The default device used for new PyTorch arrays.
96
+ The default device used for new Paddle arrays.
97
97
98
98
See Also
99
99
--------
@@ -105,7 +105,7 @@ def default_device(self):
105
105
Returns
106
106
-------
107
107
device : str
108
- The default device used for new PyTorch arrays.
108
+ The default device used for new Paddle arrays.
109
109
110
110
Examples
111
111
--------
@@ -118,18 +118,18 @@ def default_device(self):
118
118
119
119
def default_dtypes (self , * , device = None ):
120
120
"""
121
- The default data types used for new PyTorch arrays.
121
+ The default data types used for new Paddle arrays.
122
122
123
123
Parameters
124
124
----------
125
125
device : str, optional
126
- The device to get the default data types for. For PyTorch , only
126
+ The device to get the default data types for. For Paddle , only
127
127
``'cpu'`` is allowed.
128
128
129
129
Returns
130
130
-------
131
131
dtypes : dict
132
- A dictionary describing the default data types used for new PyTorch
132
+ A dictionary describing the default data types used for new Paddle
133
133
arrays.
134
134
135
135
See Also
@@ -244,7 +244,7 @@ def _dtypes(self, kind):
244
244
@cache
245
245
def dtypes (self , * , device = None , kind = None ):
246
246
"""
247
- The array API data types supported by PyTorch .
247
+ The array API data types supported by Paddle .
248
248
249
249
Note that this function only returns data types that are defined by
250
250
the array API.
@@ -277,7 +277,7 @@ def dtypes(self, *, device=None, kind=None):
277
277
-------
278
278
dtypes : dict
279
279
A dictionary mapping the names of data types to the corresponding
280
- PyTorch data types.
280
+ Paddle data types.
281
281
282
282
See Also
283
283
--------
@@ -307,12 +307,12 @@ def dtypes(self, *, device=None, kind=None):
307
307
@cache
308
308
def devices (self ):
309
309
"""
310
- The devices supported by PyTorch .
310
+ The devices supported by Paddle .
311
311
312
312
Returns
313
313
-------
314
314
devices : list of str
315
- The devices supported by PyTorch .
315
+ The devices supported by Paddle .
316
316
317
317
See Also
318
318
--------
0 commit comments