File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ should be taken into account:
37
37
other than wrappers for functions in the standard, and basic [ helper
38
38
functions] ( ../helper-functions.rst ) that would be useful for most users of
39
39
array-api-compat. The addition of functions that are not part of the array
40
- API standard is currently out-of-scope for this package.
40
+ API standard is currently out-of-scope for this package (see the
41
+ [ Scope] ( scope ) section of the documentation).
41
42
42
- - * No Side-effects * . array-api-compat behavior should be localized to only the
43
+ - * No Side-Effects * . array-api-compat behavior should be localized to only the
43
44
specific code that imports and uses it. It should be invisible to end-users
44
45
or users of dependent codes. This in particular implies to the next two
45
46
points.
@@ -51,8 +52,8 @@ should be taken into account:
51
52
library cannot be modified. This also precludes the creation of array
52
53
subclasses or wrapper classes.
53
54
54
- Any behavior that is built-in to the array object, such as the behavior of
55
- [ array
55
+ Any non-standard behavior that is built-in to the array object, such as the
56
+ behavior of [ array
56
57
methods] ( https://data-apis.org/array-api/latest/API_specification/array_object.html ) ,
57
58
is therefore left unwrapped. Users can workaround issues by using
58
59
corresponding [ elementwise
Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ version.
66
66
functions {func}` ~.array_namespace() ` and {func}` ~.to_device() ` in this
67
67
library should be used instead.
68
68
69
- - The ` x.size ` attribute on ` torch.Tensor ` is a function that behaves
70
- differently from
69
+ - The {external+torch : meth } ` x.size() < torch.Tensor.size> ` attribute on
70
+ ` torch.Tensor ` is a method that behaves differently from the
71
71
[ ` x.size ` ] ( https://data-apis.org/array-api/draft/API_specification/generated/array_api.array.size.html )
72
- in the spec. Use the {func}` ~.size() ` helper function as a portable
73
- workaround.
72
+ attribute in the spec. Use the {func}` ~.size() ` helper function as a
73
+ portable workaround.
74
74
75
75
- PyTorch does not have unsigned integer types other than ` uint8 ` , and no
76
76
attempt is made to implement them here.
You can’t perform that action at this time.
0 commit comments