Skip to content

Commit 42767e5

Browse files
committed
Removed todos [skip ci]
1 parent f74d85c commit 42767e5

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

pgvector/halfvec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def to_list(self) -> list[float]:
3939
return list(struct.unpack_from(f'>{self.dimensions()}e', self._value[4:]))
4040

4141
def to_numpy(self) -> np.ndarray[tuple[int], np.dtype[np.float16]]:
42-
# TODO return native endian
4342
return np.frombuffer(self._value, dtype='>f2', count=self.dimensions(), offset=4)
4443

4544
def to_text(self) -> str:

pgvector/vector.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def to_list(self) -> list[float]:
3939
return list(struct.unpack_from(f'>{self.dimensions()}f', self._value[4:]))
4040

4141
def to_numpy(self) -> np.ndarray[tuple[int], np.dtype[np.float32]]:
42-
# TODO return native endian
4342
return np.frombuffer(self._value, dtype='>f4', count=self.dimensions(), offset=4)
4443

4544
def to_text(self) -> str:

0 commit comments

Comments
 (0)