mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-09 10:17:06 +00:00
ggml-zdnn: update set_tensor logging to check only for matmul
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
@@ -484,14 +484,13 @@ static void ggml_backend_zdnn_buffer_set_tensor(ggml_backend_buffer_t buffer, gg
|
|||||||
zdnn_extra * extra = (zdnn_extra *)tensor->extra;
|
zdnn_extra * extra = (zdnn_extra *)tensor->extra;
|
||||||
ZDNN_CHECK(zdnn_transform_ztensor(&extra->ztensor, (void *)((char *)data + offset)));
|
ZDNN_CHECK(zdnn_transform_ztensor(&extra->ztensor, (void *)((char *)data + offset)));
|
||||||
// Log operation type and extra->extra status
|
// Log operation type and extra->extra status
|
||||||
GGML_LOG_INFO("%s: tensor op = %s, has extra->extra = %s\n",
|
if (tensor->op == GGML_OP_MUL_MAT) {
|
||||||
__func__,
|
GGML_LOG_INFO("%s: tensor op = %s, has extra->extra = %s\n",
|
||||||
ggml_op_name(tensor->op),
|
__func__,
|
||||||
(extra->extra != nullptr) ? "true" : "false");
|
ggml_op_name(tensor->op),
|
||||||
|
(extra->extra != nullptr) ? "true" : "false");
|
||||||
if (tensor->op == GGML_OP_MUL_MAT && extra->extra == nullptr) {
|
|
||||||
GGML_LOG_WARN("%s: MUL_MAT operation detected but extra->extra is nullptr\n", __func__);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (extra->extra != nullptr) {
|
// if (extra->extra != nullptr) {
|
||||||
// zdnn_extra * bias_extra = (zdnn_extra *)extra->extra;
|
// zdnn_extra * bias_extra = (zdnn_extra *)extra->extra;
|
||||||
// void * bias_data = (void *)calloc(tensor->ne[0], ggml_element_size(tensor));
|
// void * bias_data = (void *)calloc(tensor->ne[0], ggml_element_size(tensor));
|
||||||
|
|||||||
Reference in New Issue
Block a user