Skip to content

Commit dde9652

Browse files
committed
see if this works
1 parent 2754abf commit dde9652

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

cuda_core/cuda/core/experimental/_memoryview.pyx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ cdef class StridedMemoryView:
4949
----------
5050
ptr : int
5151
Pointer to the tensor buffer (as a Python `int`).
52-
shape: tuple
52+
shape : tuple
5353
Shape of the tensor.
54-
strides: tuple
54+
strides : tuple
5555
Strides of the tensor (in **counts**, not bytes).
5656
dtype: numpy.dtype
5757
Data type of the tensor.
58-
device_id: int
58+
device_id : int
5959
The device ID for where the tensor is located. It is -1 for CPU tensors
6060
(meaning those only accessible from the host).
61-
is_device_accessible: bool
61+
is_device_accessible : bool
6262
Whether the tensor data can be accessed on the GPU.
6363
readonly: bool
6464
Whether the tensor data can be modified in place.
65-
exporting_obj: Any
65+
exporting_obj : Any
6666
A reference to the original tensor object that is being viewed.
6767
6868
Parameters
@@ -335,7 +335,8 @@ cdef StridedMemoryView view_as_cai(obj, stream_ptr, view=None):
335335

336336

337337
def args_viewable_as_strided_memory(tuple arg_indices):
338-
"""Decorator to create proxy objects to :obj:`StridedMemoryView` for the
338+
"""
339+
Decorator to create proxy objects to :obj:`StridedMemoryView` for the
339340
specified positional arguments.
340341
341342
This allows array/tensor attributes to be accessed inside the function

cuda_core/docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595

9696
section_titles = ["Returns"]
9797

98+
autodoc_mock_imports = ["cuda"]
99+
98100

99101
def autodoc_process_docstring(app, what, name, obj, options, lines):
100102
if name.startswith("cuda.core.experimental.system"):

0 commit comments

Comments
 (0)