1515
1616class __array_namespace_info__ :
1717 """
18- Get the array API inspection namespace for PyTorch .
18+ Get the array API inspection namespace for Paddle .
1919
2020 The array API inspection namespace defines the following functions:
2121
@@ -32,7 +32,7 @@ class __array_namespace_info__:
3232 Returns
3333 -------
3434 info : ModuleType
35- The array API inspection namespace for PyTorch .
35+ The array API inspection namespace for Paddle .
3636
3737 Examples
3838 --------
@@ -54,11 +54,11 @@ def capabilities(self):
5454 The resulting dictionary has the following keys:
5555
5656 - **"boolean indexing"**: boolean indicating whether an array library
57- supports boolean indexing. Always ``True`` for PyTorch .
57+ supports boolean indexing. Always ``True`` for Paddle .
5858
5959 - **"data-dependent shapes"**: boolean indicating whether an array
6060 library supports data-dependent output shapes. Always ``True`` for
61- PyTorch .
61+ Paddle .
6262
6363 See
6464 https://data-apis.org/array-api/latest/API_specification/generated/array_api.info.capabilities.html
@@ -93,7 +93,7 @@ def capabilities(self):
9393
9494 def default_device (self ):
9595 """
96- The default device used for new PyTorch arrays.
96+ The default device used for new Paddle arrays.
9797
9898 See Also
9999 --------
@@ -105,7 +105,7 @@ def default_device(self):
105105 Returns
106106 -------
107107 device : str
108- The default device used for new PyTorch arrays.
108+ The default device used for new Paddle arrays.
109109
110110 Examples
111111 --------
@@ -118,18 +118,18 @@ def default_device(self):
118118
119119 def default_dtypes (self , * , device = None ):
120120 """
121- The default data types used for new PyTorch arrays.
121+ The default data types used for new Paddle arrays.
122122
123123 Parameters
124124 ----------
125125 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
127127 ``'cpu'`` is allowed.
128128
129129 Returns
130130 -------
131131 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
133133 arrays.
134134
135135 See Also
@@ -244,7 +244,7 @@ def _dtypes(self, kind):
244244 @cache
245245 def dtypes (self , * , device = None , kind = None ):
246246 """
247- The array API data types supported by PyTorch .
247+ The array API data types supported by Paddle .
248248
249249 Note that this function only returns data types that are defined by
250250 the array API.
@@ -277,7 +277,7 @@ def dtypes(self, *, device=None, kind=None):
277277 -------
278278 dtypes : dict
279279 A dictionary mapping the names of data types to the corresponding
280- PyTorch data types.
280+ Paddle data types.
281281
282282 See Also
283283 --------
@@ -307,12 +307,12 @@ def dtypes(self, *, device=None, kind=None):
307307 @cache
308308 def devices (self ):
309309 """
310- The devices supported by PyTorch .
310+ The devices supported by Paddle .
311311
312312 Returns
313313 -------
314314 devices : list of str
315- The devices supported by PyTorch .
315+ The devices supported by Paddle .
316316
317317 See Also
318318 --------
0 commit comments