Package org.jetbrains.kotlinx.dl.impl.util
Functions
argmax
Link copied to clipboard
Returns the index of the maximum element in the given FloatArray. TODO: Should be replaced with Multik in future.
flattenFloats
Link copied to clipboard
Flattens the given array of float values.
toNormalizedVector
Link copied to clipboard
Normalizes bytes via division on 255 to get values in range '[0; 1)'.
toRawVector
Link copied to clipboard
Converts bytes to FloatArray.