We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f196a4b commit 6167c1aCopy full SHA for 6167c1a
flux.hpp
@@ -35,7 +35,7 @@ namespace Flux {
35
int64_t hidden_size;
36
float eps;
37
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) {
+ void init_params(struct ggml_context* ctx, std::map<std::string, enum ggml_type>& tensor_types, const std::string prefix = "") {
39
ggml_type wtype = GGML_TYPE_F32; //(tensor_types.find(prefix + "scale") != tensor_types.end()) ? tensor_types[prefix + "scale"] : GGML_TYPE_F32;
40
params["scale"] = ggml_new_tensor_1d(ctx, wtype, hidden_size);
41
}
0 commit comments