prof: fix tensor dims formatter

This commit is contained in:
Max Krasnyansky
2025-11-18 17:58:15 -08:00
parent 6f075cc63a
commit c58a3bf677

View File

@@ -65,8 +65,8 @@ extern "C" void ggml_graph_profile_start(struct ggml_cgraph *cg, int n_threads)
static inline int ggml_profile_format_tensor_dims(char *str, struct ggml_tensor *t) static inline int ggml_profile_format_tensor_dims(char *str, struct ggml_tensor *t)
{ {
return sprintf(str, "%d:%d:%d:%d", return sprintf(str, "%ld:%ld:%ld:%ld",
(int) t->ne[0], (int) t->ne[1], (int) t->ne[3], (int) t->ne[3]); (long) t->ne[0], (long) t->ne[1], (long) t->ne[2], (long) t->ne[3]);
} }
static inline void ggml_profile_format_op_dims(char *str, struct ggml_tensor *t) static inline void ggml_profile_format_op_dims(char *str, struct ggml_tensor *t)