MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / calc_magnitude

Method calc_magnitude

subprojects/llama.cpp/src/models/gemma3n-iswa.cpp:234–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234ggml_tensor * llm_build_gemma3n_iswa::calc_magnitude(ggml_tensor * x) {
235 return ggml_sqrt(ctx0, ggml_sum_rows(ctx0, ggml_sqr(ctx0, x)));
236}
237
238// get 2D slice view from a 3D tensor, the idx corresponds to the 3rd dim
239ggml_tensor * llm_build_gemma3n_iswa::view_2d_slice(ggml_tensor * x, int idx) {

Callers

nothing calls this directly

Calls 3

ggml_sqrtFunction · 0.85
ggml_sum_rowsFunction · 0.85
ggml_sqrFunction · 0.85

Tested by

no test coverage detected