Skip to content

Commit e6034d8

Browse files
ymao1davidkyle
andauthored
Update x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results/InferenceByteEmbedding.java
Co-authored-by: David Kyle <[email protected]>
1 parent 12a1154 commit e6034d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results/InferenceByteEmbedding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ float[] toFloatArray() {
7070
double[] toDoubleArray() {
7171
double[] doubleArray = new double[values.length];
7272
for (int i = 0; i < values.length; i++) {
73-
doubleArray[i] = ((Byte) values[i]).floatValue();
73+
doubleArray[i] = ((Byte) values[i]).doubleValue();
7474
}
7575
return doubleArray;
7676
}

0 commit comments

Comments
 (0)