| 35 | } |
| 36 | |
| 37 | static bool has_pooling(llama_context * ctx) { |
| 38 | switch (llama_pooling_type(ctx)) { |
| 39 | case LLAMA_POOLING_TYPE_NONE: |
| 40 | case LLAMA_POOLING_TYPE_UNSPECIFIED: |
| 41 | return false; |
| 42 | default: |
| 43 | return true; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | struct output_data { |
| 48 | float * data_ptr = nullptr; |
no test coverage detected