mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-17 01:34:35 +08:00
Removed todo [skip ci]
This commit is contained in:
@@ -222,10 +222,7 @@ HnswNormValue(FmgrInfo *procinfo, Oid collation, Datum *value, HnswType type)
|
|||||||
HalfVector *result = InitHalfVector(v->dim);
|
HalfVector *result = InitHalfVector(v->dim);
|
||||||
|
|
||||||
for (int i = 0; i < v->dim; i++)
|
for (int i = 0; i < v->dim; i++)
|
||||||
{
|
|
||||||
/* TODO Fix */
|
|
||||||
result->x[i] = Float4ToHalfUnchecked(HalfToFloat4(v->x[i]) / norm);
|
result->x[i] = Float4ToHalfUnchecked(HalfToFloat4(v->x[i]) / norm);
|
||||||
}
|
|
||||||
|
|
||||||
*value = PointerGetDatum(result);
|
*value = PointerGetDatum(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user