1
1
"""
2
- This file defines flags for that allow array-api-strict to be used in
3
- different "modes". These modes include
2
+ These functions configure global flags that allow array-api-strict to be
3
+ used in different "modes". These modes include
4
4
5
5
- Changing to different supported versions of the standard.
6
6
- Enabling or disabling different optional behaviors (such as data-dependent
7
7
shapes).
8
8
- Enabling or disabling different optional extensions.
9
9
10
- Nothing in this file is part of the standard itself. A typical array API
10
+ None of these functions are part of the standard itself. A typical array API
11
11
library will only support one particular configuration of these flags.
12
+
12
13
"""
13
14
14
15
import functools
@@ -112,8 +113,8 @@ def set_array_api_strict_flags(
112
113
See Also
113
114
--------
114
115
115
- get_array_api_strict_flags
116
- reset_array_api_strict_flags
116
+ get_array_api_strict_flags: Get the current values of flags.
117
+ reset_array_api_strict_flags: Reset the flags to their default values.
117
118
ArrayApiStrictFlags: A context manager to temporarily set the flags.
118
119
119
120
"""
@@ -175,8 +176,8 @@ def get_array_api_strict_flags():
175
176
See Also
176
177
--------
177
178
178
- set_array_api_strict_flags
179
- reset_array_api_strict_flags
179
+ set_array_api_strict_flags: Set one or more flags to a given value.
180
+ reset_array_api_strict_flags: Reset the flags to their default values.
180
181
ArrayApiStrictFlags: A context manager to temporarily set the flags.
181
182
182
183
"""
@@ -207,8 +208,8 @@ def reset_array_api_strict_flags():
207
208
See Also
208
209
--------
209
210
210
- set_array_api_strict_flags
211
- get_array_api_strict_flags
211
+ get_array_api_strict_flags: Get the current values of flags.
212
+ set_array_api_strict_flags: Set one or more flags to a given value.
212
213
ArrayApiStrictFlags: A context manager to temporarily set the flags.
213
214
214
215
"""
@@ -234,9 +235,9 @@ class ArrayApiStrictFlags:
234
235
See Also
235
236
--------
236
237
237
- set_array_api_strict_flags
238
- get_array_api_strict_flags
239
- reset_array_api_strict_flags
238
+ get_array_api_strict_flags: Get the current values of flags.
239
+ set_array_api_strict_flags: Set one or more flags to a given value.
240
+ reset_array_api_strict_flags: Reset the flags to their default values.
240
241
241
242
"""
242
243
def __init__ (self , * , api_version = None , data_dependent_shapes = None ,
0 commit comments