diff --git a/examples/tm_mobilefacenet.cpp b/examples/tm_mobilefacenet.cpp index 79307bb8a244421a35ba2d137937f959ba3a218e..6e5121ef3e0fd50b005097c9005586be0fb48e30 100644 --- a/examples/tm_mobilefacenet.cpp +++ b/examples/tm_mobilefacenet.cpp @@ -27,7 +27,7 @@ void init(const char* modelfile) graph = create_graph(NULL, "tengine", modelfile); if (graph == NULL) { - fprintf(stderr, "grph nullptr %\n", get_tengine_errno()); + fprintf(stderr, "grph nullptr %d\n", get_tengine_errno()); } else { diff --git a/src/dev/cpu/op/softmax/softmax_ref.c b/src/dev/cpu/op/softmax/softmax_ref.c index 41f8b0e315c1d37d7be338b00ec1c495dfa3b857..8664ade8c72043657ff4dd775fb0ae4fe2888d72 100644 --- a/src/dev/cpu/op/softmax/softmax_ref.c +++ b/src/dev/cpu/op/softmax/softmax_ref.c @@ -158,7 +158,7 @@ static int run(struct node_ops* node_ops, struct exec_node* exec_node, struct ex for (int i = 0; i < out_size; i++) { /* get max */ - int img_base = i * on_in_size * element_size; + int img_base = i * on_in_size; GetMaxArray(input + img_base, max_array, in_size, on_size, exec_graph->num_thread); GetOutResult(input + img_base, output + img_base, max_array, sum_array, in_size, on_size,