We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent19d876e commitfbd42b6Copy full SHA for fbd42b6
clip.hpp
@@ -546,7 +546,7 @@ class CLIPEmbeddings : public GGMLBlock {
546
int64_t num_positions;
547
548
voidinit_params(structggml_context* ctx, std::map<std::string,enum ggml_type>& tensor_types,const std::string prefix ="") {
549
-enum ggml_type token_wtype = (tensor_types.find(prefix +"token_embedding.weight") != tensor_types.end()) ? tensor_types[prefix +"token_embedding.weight"] : GGML_TYPE_F32;
+enum ggml_type token_wtype =GGML_TYPE_F32;//(tensor_types.find(prefix + "token_embedding.weight") != tensor_types.end()) ? tensor_types[prefix + "token_embedding.weight"] : GGML_TYPE_F32;
550
enum ggml_type position_wtype = GGML_TYPE_F32;//(tensor_types.find(prefix + "position_embedding.weight") != tensor_types.end()) ? tensor_types[prefix + "position_embedding.weight"] : GGML_TYPE_F32;
551
552
params["token_embedding.weight"] =ggml_new_tensor_2d(ctx, token_wtype, embed_dim, vocab_size);