@@ -14720,12 +14720,12 @@ static void ggml_graph_export_leaf(const struct ggml_tensor * tensor, FILE * fou
14720
14720
const int64_t * ne = tensor->ne;
14721
14721
const size_t * nb = tensor->nb;
14722
14722
14723
- fprintf(fout, "%-6s %-12s %8d %8jd %jd %jd %jd %16zu %16zu %16zu %16zu %16p %32s\n",
14723
+ fprintf(fout, "%-6s %-12s %8d %8d %d %d %d %16zu %16zu %16zu %16zu %16p %32s\n",
14724
14724
ggml_type_name(tensor->type),
14725
14725
ggml_op_name (tensor->op),
14726
14726
tensor->n_dims,
14727
- ne[0], ne[1], ne[2], ne[3],
14728
- nb[0], nb[1], nb[2], nb[3],
14727
+ (int) ne[0], (int) ne[1], (int) ne[2], (int) ne[3],
14728
+ nb[0], nb[1], nb[2], nb[3],
14729
14729
tensor->data,
14730
14730
tensor->name);
14731
14731
}
@@ -14734,13 +14734,13 @@ static void ggml_graph_export_node(const struct ggml_tensor * tensor, const char
14734
14734
const int64_t * ne = tensor->ne;
14735
14735
const size_t * nb = tensor->nb;
14736
14736
14737
- fprintf(fout, "%-6s %-6s %-12s %8d %jd %jd %jd %jd %16zu %16zu %16zu %16zu %8d %16p %32s\n",
14737
+ fprintf(fout, "%-6s %-6s %-12s %8d %d %d %d %d %16zu %16zu %16zu %16zu %8d %16p %32s\n",
14738
14738
arg,
14739
14739
ggml_type_name(tensor->type),
14740
14740
ggml_op_name (tensor->op),
14741
14741
tensor->n_dims,
14742
- ne[0], ne[1], ne[2], ne[3],
14743
- nb[0], nb[1], nb[2], nb[3],
14742
+ (int) ne[0], (int) ne[1], (int) ne[2], (int) ne[3],
14743
+ nb[0], nb[1], nb[2], nb[3],
14744
14744
tensor->n_tasks,
14745
14745
tensor->data,
14746
14746
tensor->name);
@@ -14763,11 +14763,11 @@ void ggml_graph_export(const struct ggml_cgraph * cgraph, const char * fname) {
14763
14763
FILE * fout = stdout;
14764
14764
14765
14765
fprintf(fout, "\n");
14766
- fprintf(fout, "%-16s %8x\n", "magic", GGML_FILE_MAGIC);
14767
- fprintf(fout, "%-16s %8d\n", "version", GGML_FILE_VERSION);
14768
- fprintf(fout, "%-16s %8d\n", "leafs", cgraph->n_leafs);
14769
- fprintf(fout, "%-16s %8d\n", "nodes", cgraph->n_nodes);
14770
- fprintf(fout, "%-16s %8ju \n", "eval", size_eval);
14766
+ fprintf(fout, "%-16s %8x\n", "magic", GGML_FILE_MAGIC);
14767
+ fprintf(fout, "%-16s %8d\n", "version", GGML_FILE_VERSION);
14768
+ fprintf(fout, "%-16s %8d\n", "leafs", cgraph->n_leafs);
14769
+ fprintf(fout, "%-16s %8d\n", "nodes", cgraph->n_nodes);
14770
+ fprintf(fout, "%-16s %8d \n", "eval", (int) size_eval);
14771
14771
14772
14772
// header
14773
14773
fprintf(fout, "\n");
0 commit comments