mirror of https://github.com/milvus-io/milvus.git
1ce609834a
Add the following methods for convenient fp32 vector <-> fp16/bf16 vector conversion fp32 <-> fp16/bf16 vector conversion: - `func (fv FloatVector) ToFloat16Vector() Float16Vector` - `func (fv FloatVector) ToBFloat16Vector() BFloat16Vector` - `func (fv Float16Vector) ToFloat32Vector() FloatVector` - `func (fv BFloat16Vector) ToFloat32Vector() FloatVector` `columnBasedDataOption`: - `func (opt *columnBasedDataOption) WithFloat16VectorColumn(colName string, dim int, data [][]float32) *columnBasedDataOption` - `func (opt *columnBasedDataOption) WithBFloat16VectorColumn(colName string, dim int, data [][]float32) *columnBasedDataOption` `ColumnFloat16Vector`/`ColumnBFloat16Vector`: - `func NewColumnFloat16VectorFromFp32Vector(fieldName string, dim int, data [][]float32) *ColumnFloat16Vector` - `func NewColumnBFloat16VectorFromFp32Vector(fieldName string, dim int, data [][]float32) *ColumnBFloat16Vector` - support []float32 or `entity.FloatVector` in - `func (c *ColumnFloat16Vector) AppendValue(i interface{}) error` - `func (c *ColumnFloat16Vector) AppendValue(i interface{}) error` issue: #37448 Signed-off-by: Yinzuo Jiang <yinzuo.jiang@zilliz.com> Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> |
||
---|---|---|
.. | ||
helper | ||
client_test.go | ||
collection_test.go | ||
database_test.go | ||
delete_test.go | ||
index_test.go | ||
insert_test.go | ||
load_release_test.go | ||
main_test.go | ||
partition_test.go | ||
query_test.go | ||
search_test.go | ||
upsert_test.go |