mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-26 23:29:53 +00:00
fix: restore singleton dims for LLM outputs (#1518)
This commit is contained in:
parent
b758b7de13
commit
b706d682ad
1 changed files with 2 additions and 1 deletions
|
|
@ -1403,7 +1403,8 @@ namespace LLM {
|
|||
out_layers,
|
||||
return_all_hidden_states);
|
||||
};
|
||||
return take_or_empty(GGMLRunner::compute<float>(get_graph, n_threads, true));
|
||||
return restore_trailing_singleton_dims(GGMLRunner::compute<float>(get_graph, n_threads, true),
|
||||
input_ids.dim() + 1);
|
||||
}
|
||||
|
||||
int64_t get_num_image_tokens(int64_t t, int64_t h, int64_t w) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue