Skip to content

Commit 0bd7f23

Browse files
committed
rename python package to pyGGNN.
1 parent 005271a commit 0bd7f23

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ if (nanobind_FOUND)
200200
message(STATUS "building nanobind module")
201201
nanobind_add_module(GGNN NB_STATIC NOMINSIZE "src/ggnn/python/nanobind.cu")
202202
target_link_libraries(GGNN PRIVATE GGNNBase GGNNConstruction GGNNQuery glog::glog)
203-
nanobind_add_stub(GGNN_stub MODULE GGNN OUTPUT GGNN.pyi MARKER_FILE py.typed DEPENDS GGNN)
203+
nanobind_add_stub(pyGGNN_stub MODULE GGNN OUTPUT pyGGNN.pyi MARKER_FILE py.typed DEPENDS GGNN)
204204

205205
if (PY_BUILD_CMAKE_MODULE_NAME)
206206
message(STATUS "configuring python module installation")
@@ -217,7 +217,7 @@ if (nanobind_FOUND)
217217
COMPONENT python_modules
218218
DESTINATION ${PY_BUILD_CMAKE_MODULE_NAME})
219219
endif()
220-
install(FILES ${CMAKE_BINARY_DIR}/py.typed ${CMAKE_BINARY_DIR}/GGNN.pyi
220+
install(FILES ${CMAKE_BINARY_DIR}/py.typed ${CMAKE_BINARY_DIR}/pyGGNN.pyi
221221
EXCLUDE_FROM_ALL
222222
COMPONENT python_modules
223223
DESTINATION ${PY_BUILD_CMAKE_MODULE_NAME})

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The GGNN python module can be used to perform GPU-accelerated approximate neares
9595
```python
9696
#! /usr/bin/python3
9797

98-
import ggnn
98+
import pyggnn as ggnn
9999
import torch
100100

101101
# get detailed logs

docs/source/usage_python.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ By default, the log level is set to ``0``:
2222
2323
#! /usr/bin/python3
2424
25-
import ggnn
25+
import pyggnn as ggnn
2626
2727
#get detailed logs
2828
ggnn.set_log_level(4)
@@ -174,7 +174,7 @@ Otherwise, this works the same way as above.
174174
175175
#! /usr/bin/python3
176176
177-
import ggnn
177+
import pyggnn as ggnn
178178
import torch
179179
180180
# create data
@@ -224,7 +224,7 @@ and passed to the ``Evaluator`` directly.
224224
225225
#! /usr/bin/python3
226226
227-
import ggnn
227+
import pyggnn as ggnn
228228
229229
path_to_dataset = '/path/to/sift/'
230230

examples/python/ggnn_pytorch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/python3
22

3-
import ggnn
3+
import pyggnn as ggnn
44
import torch
55

66
# get detailed logs
@@ -36,5 +36,5 @@
3636
evaluator = ggnn.Evaluator(base, query, gt_indices, k_query=k_query)
3737
print(evaluator.evaluate_results(indices))
3838

39-
# print the indices of the 10 NN of the first five queries and their squared euclidean distances
39+
# print the indices of the 10 NN of the first five queries and their squared euclidean distances
4040
print('indices:', indices[:5], '\n squared dists:', dists[:5], '\n')

examples/python/ggnn_pytorch_gpu_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/python3
22

3-
import ggnn
3+
import pyggnn as ggnn
44
import torch
55

66
# get detailed logs

examples/python/ggnn_pytorch_multi_gpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/python3
22

3-
import ggnn
3+
import pyggnn as ggnn
44
import torch
55

66
# create data

examples/python/sift1m_fvecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/python3
22

3-
import ggnn
3+
import pyggnn as ggnn
44

55
path_to_dataset = '/graphics/scratch/datasets/ANN_datasets/SIFT1M/sift/'
66

examples/python/sift1m_hdf5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/python3
22

3-
import ggnn
3+
import pyggnn as ggnn
44

55
import h5py
66
import numpy as np

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project] # Project metadata
2-
name = "GGNN"
2+
name = "pyGGNN"
33
readme = "README.md"
44
requires-python = ">=3.8"
55
license = { "file" = "LICENSE" }
@@ -32,7 +32,7 @@ dynamic = ["version", "description"]
3232

3333
[project.urls]
3434
Homepage = "https://github.com/cgtuebingen/ggnn"
35-
# TODO: Documentation = "https://ggnn.readthedocs.io/"
35+
Documentation = "https://ggnn.readthedocs.io/"
3636

3737
[build-system] # How pip and other frontends should build this project
3838
requires = ["py-build-cmake~=0.3.3", "nanobind", "typing_extensions"]
File renamed without changes.

0 commit comments

Comments
 (0)