Skip to content

Commit c58a3bf

Browse files
prof: fix tensor dims formatter
1 parent 6f075cc commit c58a3bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-profile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ extern "C" void ggml_graph_profile_start(struct ggml_cgraph *cg, int n_threads)
6565

6666
static inline int ggml_profile_format_tensor_dims(char *str, struct ggml_tensor *t)
6767
{
68-
return sprintf(str, "%d:%d:%d:%d",
69-
(int) t->ne[0], (int) t->ne[1], (int) t->ne[3], (int) t->ne[3]);
68+
return sprintf(str, "%ld:%ld:%ld:%ld",
69+
(long) t->ne[0], (long) t->ne[1], (long) t->ne[2], (long) t->ne[3]);
7070
}
7171

7272
static inline void ggml_profile_format_op_dims(char *str, struct ggml_tensor *t)

0 commit comments

Comments
 (0)