Skip to content

Commit 5c8e9e9

Browse files
committed
Apply the pre-commit fixes for the rebased TensorMap branch.
Add the missing SPDX header on the new `_memoryview.pxd` file and keep the test module formatted the way `ruff format` expects so pre-commit.ci can clear on the live PR branch. Made-with: Cursor
1 parent 0a90f60 commit 5c8e9e9

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

cuda_core/cuda/core/_memoryview.pxd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
from libc.stdint cimport intptr_t
26

37
from cuda.core._dlpack cimport DLTensor

cuda_core/tests/test_tensor_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def __init__(self, device_type, device_id):
6262
def __dlpack_device__(self):
6363
return (self._device_type, self._device_id)
6464

65+
6566
def _as_view(obj):
6667
if isinstance(obj, StridedMemoryView):
6768
return obj

0 commit comments

Comments
 (0)