Skip to content

Commit bcf3add

Browse files
committed
address comments on the docstring
1 parent f1239a2 commit bcf3add

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cuda_core/cuda/core/experimental/_memoryview.pyx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,11 @@ def viewable(tuple arg_indices):
340340
"""Decorator to create proxy objects to :obj:`StridedMemoryView` for the
341341
specified positional arguments.
342342
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
344348
of an (undocumented) proxy type, regardless of its original source. A
345349
:obj:`StridedMemoryView` instance can be obtained by passing the (consumer)
346350
stream pointer (as a Python `int`) to the proxies's ``view()`` method. For
@@ -355,10 +359,6 @@ def viewable(tuple arg_indices):
355359
assert isinstance(view, StridedMemoryView)
356360
...
357361
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-
362362
Parameters
363363
----------
364364
arg_indices : tuple

0 commit comments

Comments
 (0)