Skip to content

Commit b822399

Browse files
committed
fix typo
1 parent c2ba046 commit b822399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cvector-generator/cvector-generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct callback_data {
8181
// copy tensor data
8282
auto n_bytes = ggml_nbytes(t);
8383
struct ggml_tensor * t_layer = ggml_new_tensor_2d(ctx_ggml, t->type, t->ne[0], t->ne[1]);
84-
set_tensor_data(t_layer, malloc(n_bytes)); // TODO @ngxson : get rid of this malloc somehow
84+
tensor_set_data(t_layer, malloc(n_bytes)); // TODO @ngxson : get rid of this malloc somehow
8585
ggml_backend_tensor_get(t, tensor_data(t_layer), 0, n_bytes); // @dbsanfte: speculative refactor with tensor_data(), and above
8686
ggml_set_name(t_layer, ggml_get_name(t));
8787
//print_debug_tensor(t_layer);

0 commit comments

Comments
 (0)