Skip to content

Commit 371e18b

Browse files
committed
refactor: fix flux
1 parent 72c8d96 commit 371e18b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flux.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Flux {
3535
int64_t hidden_size;
3636
float eps;
3737

38-
void init_params(struct ggml_context* ctx, const std::string prefix, std::map<std::string, enum ggml_type>& tensor_types, std::map<std::string, struct ggml_tensor*>& params) {
38+
void init_params(struct ggml_context* ctx, std::map<std::string, enum ggml_type>& tensor_types, const std::string prefix = "") {
3939
ggml_type wtype = GGML_TYPE_F32; //(tensor_types.find(prefix + "scale") != tensor_types.end()) ? tensor_types[prefix + "scale"] : GGML_TYPE_F32;
4040
params["scale"] = ggml_new_tensor_1d(ctx, wtype, hidden_size);
4141
}

0 commit comments

Comments
 (0)