Guillaume Wenzek há 1 ano atrás
pai
commit
184c1e1da3

+ 3 - 3
ggml/examples/unity/model_loader.cpp

@@ -60,7 +60,7 @@ model_loader::load_model_weights(fairseq2_model &model, std::ifstream &fin)
 
     printf("%s: model size  = %8.2f MB\n", __func__, total_size/1024.0/1024.0);
     return 0;
-};
+}
 
 ggml_tensor* load_tensor_value(std::ifstream &fin, ggml_context* ctx)
 {
@@ -82,7 +82,7 @@ ggml_tensor* load_tensor_value(std::ifstream &fin, ggml_context* ctx)
     ggml_tensor* tensor = ggml_new_tensor(ctx, type, n_dims, ne);
     fin.read(reinterpret_cast<char *>(tensor->data), ggml_nbytes(tensor));
     return tensor;
-};
+}
 
 std::string
 model_loader::get_name(std::ifstream& fin)
@@ -96,4 +96,4 @@ model_loader::get_name(std::ifstream& fin)
     fin.read(&name[0], length);
 
     return name;
-};
+}

+ 1 - 1
ggml/examples/unity/unity_model_loader.h

@@ -127,7 +127,7 @@ void read_unity_hparams(unity_hparams* out, std::ifstream &fin) {
     fin.read((char*) &out->model_byte_size, sizeof(out->model_byte_size));
     fin.read((char*) &out->__end_of_hparams__, sizeof(out->__end_of_hparams__));
 
-};
+}
 
 class unity_model_loader: public model_loader {
     public: