File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cuda_core/cuda/core/experimental Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,11 @@ def viewable(tuple arg_indices):
340
340
""" Decorator to create proxy objects to :obj:`StridedMemoryView` for the
341
341
specified positional arguments.
342
342
343
- Inside the decorated function, the specified arguments becomes instances
343
+ This allows array/tensor attributes to be accessed inside the function
344
+ implementation, while keeping the function body array-library-agnostic (if
345
+ desired).
346
+
347
+ Inside the decorated function, the specified arguments become instances
344
348
of an (undocumented) proxy type, regardless of its original source. A
345
349
:obj:`StridedMemoryView` instance can be obtained by passing the (consumer)
346
350
stream pointer (as a Python `int`) to the proxies's ``view()`` method. For
@@ -355,10 +359,6 @@ def viewable(tuple arg_indices):
355
359
assert isinstance(view, StridedMemoryView)
356
360
...
357
361
358
- This allows array/tensor attributes to be accessed inside the function
359
- implementation, while keeping the function body array-library-agnostic (if
360
- desired).
361
-
362
362
Parameters
363
363
----------
364
364
arg_indices : tuple
You can’t perform that action at this time.
0 commit comments