MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_compute_forward_set

Function ggml_compute_forward_set

ggml.c:10226–10254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10224}
10225
10226static void ggml_compute_forward_set(
10227 const struct ggml_compute_params * params,
10228 const struct ggml_tensor * src0,
10229 const struct ggml_tensor * src1,
10230 struct ggml_tensor * dst) {
10231
10232 switch (src0->type) {
10233 case GGML_TYPE_F32:
10234 {
10235 ggml_compute_forward_set_f32(params, src0, src1, dst);
10236 } break;
10237 case GGML_TYPE_F16:
10238 case GGML_TYPE_Q4_0:
10239 case GGML_TYPE_Q4_1:
10240 case GGML_TYPE_Q5_0:
10241 case GGML_TYPE_Q5_1:
10242 case GGML_TYPE_Q8_0:
10243 case GGML_TYPE_Q8_1:
10244 case GGML_TYPE_Q2_K:
10245 case GGML_TYPE_Q3_K:
10246 case GGML_TYPE_Q4_K:
10247 case GGML_TYPE_Q5_K:
10248 case GGML_TYPE_Q6_K:
10249 default:
10250 {
10251 GGML_ASSERT(false);
10252 } break;
10253 }
10254}
10255
10256// ggml_compute_forward_cpy
10257

Callers 1

ggml_compute_forwardFunction · 0.70

Calls 1

Tested by

no test coverage detected