We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ba046 commit b822399Copy full SHA for b822399
tools/cvector-generator/cvector-generator.cpp
@@ -81,7 +81,7 @@ struct callback_data {
81
// copy tensor data
82
auto n_bytes = ggml_nbytes(t);
83
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
+ tensor_set_data(t_layer, malloc(n_bytes)); // TODO @ngxson : get rid of this malloc somehow
85
ggml_backend_tensor_get(t, tensor_data(t_layer), 0, n_bytes); // @dbsanfte: speculative refactor with tensor_data(), and above
86
ggml_set_name(t_layer, ggml_get_name(t));
87
//print_debug_tensor(t_layer);
0 commit comments