Functions
binaryVector()
Returns
List
bytes()
Returns
Buffer
f16Vector()
Returns
List
f32List()
Returns
List
f32SparseVector()
Returns
SparseVector
f32Vector()
Returns
List
f64List()
Returns
List
f8Vector()
Returns
List
i32List()
Returns
List
i64List()
Returns
List
i8Vector()
Returns
List
matrix()
values parameter must be an array of number arrays. When passing an array of number arrays,
the optional valueType parameter specifies the matrix type.
If valueType is not provided, the matrix defaults to f32.
Returns
Matrix
stringList()
Returns
List
struct()
Returns
Struct
u32List()
Returns
List
u8SparseVector()
Returns
SparseVector
u8Vector()
Returns
List
Classes
List
Internal
Instances of the List class are used to represent lists of values in TopK.
Usually created using data constructors such as f32_list(), i32_list(), etc.
Matrix
Internal
Instances of the Matrix class are used to represent matrices in TopK.
Usually created using data constructors such as matrix().
SparseVector
Internal
Instances of the SparseVector class are used to represent sparse vectors in TopK.
Usually created using data constructors such as f32_sparse_vector() or u8_sparse_vector().
Struct
Internal
Instances of the Struct class are used to represent nested object values in TopK.
Usually created using the struct() helper.
UnknownValue
Internal
Placeholder for a value this version of the SDK cannot represent.