Skip to content

Commit

Permalink
refactor: fix flux
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Nov 5, 2024
1 parent 72c8d96 commit 371e18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Flux {
int64_t hidden_size;
float eps;

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) {
void init_params(struct ggml_context* ctx, std::map<std::string, enum ggml_type>& tensor_types, const std::string prefix = "") {
ggml_type wtype = GGML_TYPE_F32; //(tensor_types.find(prefix + "scale") != tensor_types.end()) ? tensor_types[prefix + "scale"] : GGML_TYPE_F32;
params["scale"] = ggml_new_tensor_1d(ctx, wtype, hidden_size);
}
Expand Down

0 comments on commit 371e18b

Please sign in to comment.