prof: fix tensor dims formatter
This commit is contained in:
parent
6f075cc63a
commit
c58a3bf677
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue