MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_compute_forward_cpy

Function ggml_compute_forward_cpy

external/ggml/src/ggml-cpu/ops.cpp:4781–4785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4779 // src0 and dst are viewed with shape of src1 and offset
4780 // => same indices
4781 const int i3 = ir/(ne12*ne11);
4782 const int i2 = (ir - i3*ne12*ne11)/ne11;
4783 const int i1 = (ir - i3*ne12*ne11 - i2*ne11);
4784
4785 ggml_vec_cpy_i32(nc,
4786 (int32_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*nb1 + offset),
4787 (int32_t *) ((char *) src1->data + i3*nb13 + i2*nb12 + i1*nb11));
4788 }

Callers 2

ggml_compute_forwardFunction · 0.85
compute_forwardMethod · 0.85

Calls 1

ggml_compute_forward_dupFunction · 0.85

Tested by

no test coverage detected