Skip to content

Commit dfd383d

Browse files
committed
isolate changes
1 parent d4a68b8 commit dfd383d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

cuda_core/cuda/core/experimental/_memoryview.pyx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ cdef class StridedMemoryView:
4848
----------
4949
ptr : int
5050
Pointer to the tensor buffer (as a Python `int`).
51-
shape: tuple
51+
shape : tuple
5252
Shape of the tensor.
53-
strides: tuple
53+
strides : tuple
5454
Strides of the tensor (in **counts**, not bytes).
5555
dtype: numpy.dtype
5656
Data type of the tensor.
57-
device_id: int
57+
device_id : int
5858
The device ID for where the tensor is located. It is -1 for CPU tensors
5959
(meaning those only accessible from the host).
60-
is_device_accessible: bool
60+
is_device_accessible : bool
6161
Whether the tensor data can be accessed on the GPU.
6262
readonly: bool
6363
Whether the tensor data can be modified in place.
64-
exporting_obj: Any
64+
exporting_obj : Any
6565
A reference to the original tensor object that is being viewed.
6666
6767
Parameters
@@ -334,7 +334,8 @@ cdef StridedMemoryView view_as_cai(obj, stream_ptr, view=None):
334334

335335

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

cuda_core/docs/source/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@
7575
# "navbar-icon-links",
7676
# ],
7777
}
78-
if os.environ.get("CI"):
79-
PR_NUMBER = f"{os.environ['PR_NUMBER']}"
80-
PR_TEXT = f'<a href="https://github.com/NVIDIA/cuda-python/pull/{PR_NUMBER}">PR {PR_NUMBER}</a>'
81-
html_theme_options["announcement"] = f"<em>Warning</em>: This documentation is only a preview for {PR_TEXT}!"
8278

8379
# Add any paths that contain custom static files (such as style sheets) here,
8480
# relative to this directory. They are copied after the builtin static files,
@@ -99,6 +95,8 @@
9995

10096
section_titles = ["Returns"]
10197

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

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

0 commit comments

Comments
 (0)