@@ -34,7 +34,7 @@ class __array_namespace_info__:
3434
3535 Examples
3636 --------
37- >>> info = np .__array_namespace_info__()
37+ >>> info = xp .__array_namespace_info__()
3838 >>> info.default_dtypes()
3939 {'real floating': numpy.float64,
4040 'complex floating': numpy.complex128,
@@ -76,10 +76,11 @@ def capabilities(self):
7676
7777 Examples
7878 --------
79- >>> info = np .__array_namespace_info__()
79+ >>> info = xp .__array_namespace_info__()
8080 >>> info.capabilities()
8181 {'boolean indexing': True,
82- 'data-dependent shapes': True}
82+ 'data-dependent shapes': True,
83+ 'max dimensions': 64}
8384
8485 """
8586 return {
@@ -106,7 +107,7 @@ def default_device(self):
106107
107108 Examples
108109 --------
109- >>> info = np .__array_namespace_info__()
110+ >>> info = xp .__array_namespace_info__()
110111 >>> info.default_device()
111112 device(type='cpu')
112113
@@ -147,7 +148,7 @@ def default_dtypes(self, *, device=None):
147148
148149 Examples
149150 --------
150- >>> info = np .__array_namespace_info__()
151+ >>> info = xp .__array_namespace_info__()
151152 >>> info.default_dtypes()
152153 {'real floating': torch.float32,
153154 'complex floating': torch.complex64,
@@ -296,7 +297,7 @@ def dtypes(self, *, device=None, kind=None):
296297
297298 Examples
298299 --------
299- >>> info = np .__array_namespace_info__()
300+ >>> info = xp .__array_namespace_info__()
300301 >>> info.dtypes(kind='signed integer')
301302 {'int8': numpy.int8,
302303 'int16': numpy.int16,
@@ -331,7 +332,7 @@ def devices(self):
331332
332333 Examples
333334 --------
334- >>> info = np .__array_namespace_info__()
335+ >>> info = xp .__array_namespace_info__()
335336 >>> info.devices()
336337 [device(type='cpu'), device(type='mps', index=0), device(type='meta')]
337338
0 commit comments