Skip to content

Commit

Permalink
Correct style and update copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeher committed Jan 9, 2023
1 parent d687828 commit 3d67acd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion python/pylibraft/pylibraft/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/pylibraft/pylibraft/common/ai_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
10 changes: 5 additions & 5 deletions python/pylibraft/pylibraft/common/cai_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,11 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import numpy as np
from types import SimpleNamespace

from pylibraft.common import input_validation
from pylibraft.common.ai_wrapper import ai_wrapper
from types import SimpleNamespace


class cai_wrapper(ai_wrapper):
Expand All @@ -35,7 +33,9 @@ def __init__(self, cai_arr):
----------
cai_arr : CUDA array interface array
"""
helper = SimpleNamespace(__array_interface__=cai_arr.__cuda_array_interface__)
helper = SimpleNamespace(
__array_interface__=cai_arr.__cuda_array_interface__
)
super().__init__(helper)


Expand Down
5 changes: 2 additions & 3 deletions python/pylibraft/pylibraft/neighbors/ivf_pq/ivf_pq.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,8 +36,8 @@ from pylibraft.distance.distance_type cimport DistanceType

from pylibraft.common import (
Handle,
auto_convert_output,
ai_wrapper,
auto_convert_output,
cai_wrapper,
device_ndarray,
)
Expand Down Expand Up @@ -480,7 +480,6 @@ def extend(Index index, new_vectors, new_indices, handle=None):
handle = Handle()
cdef handle_t* handle_ = <handle_t*><size_t>handle.getHandle()


vecs_cai = wrap_array(new_vectors)
vecs_dt = vecs_cai.dtype
cdef uint64_t n_rows = vecs_cai.shape[0]
Expand Down
2 changes: 1 addition & 1 deletion python/pylibraft/pylibraft/test/test_ivf_pq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 3d67acd

Please sign in to comment.